An array is an ordered data structure consisting of a collection of elements (values or variables), each identified by at least one index. An array is typically stored so that the position of each element can be computed from its index tuple by a mathematical formula. In Python, the normal array ...

learn more… | top users | synonyms (2)

0
votes
0answers
4 views

Add instances from an array to another movieclip

I do ActionScript 3.0 programming and I know that very well. I have a project with ActionScript 2.0 and I got a simple problem for adding instances to the stage. In ActionScript 3.0 when I want to add ...
-1
votes
1answer
32 views

Php array from set of keys

Found this post that helped me out: Split a string to form multidimensional array keys? Anyhow that works like a charm when it comes to string values, but if array keys contain integers then it ...
-2
votes
2answers
38 views

C behavior with pointer addition

Given: int a[N]; int *p; why does a-p work yet a+p does not with error: "invalid operands to binary +".
0
votes
1answer
27 views

char[] vs LPCSTR strange behavior

Could you please explain why, in order to convert a char array like this: char strarr[5] = {65,83,67,73,73}; //ASCII Into LPCSTR to be accepted by GetModuleHandleA() and GetProcAddress(), I have to ...
0
votes
8answers
34 views

Adding new element into a fixed array

I did search on internet, but still don't understand, so I ask this question here. in the small program below, I created two tour instance, all I want to do is putting tour[2] in without changing ...
0
votes
2answers
14 views

Button and String incompatibility from an Array in AS3

So I have an inventory with items and the array has the instance name of the items, which are movieclips. I want to make it so that all the items will have their button mode become true. Everything ...
0
votes
3answers
19 views

primitive list's don't seem to match even when values/order are the same? Is it possible?

I have a list of ints[] that I list one at a time. I found an intresting pattern that the results seem to reverse so to test it I reversed the list that came into my method and then displayed them, ...
1
vote
2answers
43 views

Minimum Number of Operations to make an array sorted

I have been trying this problem on spoj, not able to come up with the correct approach. What is the correct algo to solve the problem ?
2
votes
0answers
37 views

Cross-browser way to subclass JavaScript Array and get the array[i] method?

Very glad to learn of this way of basically subclassing a JavaScript Array (code copied from link): function SomeType() { this.push(16); } SomeType.prototype = []; SomeType.prototype.constructor ...
1
vote
3answers
45 views

What is this? “Hidden values”?

Inspired by Lance Pollard's comment in this question, something really weird happened and I have never seen this before... var strangeArray = { 0:"a", 1:"b", 2:"c", length: 0, ...
-1
votes
1answer
64 views

Create variables from loop

I want to be able to create variables with a loop going up to 299. For example, I have the variable $var1 and want to be able to add from there example: $var2 - $var3 - $var4 etc. for ( $x = 1; ...
2
votes
3answers
56 views

What is an elegant way to find min value in a subset of an array?

I have an array a of 100 integers. What is a recommended way to find the min value in a[3] through a[70] AND the index of this min value? Assuming no duplication of values. I know the clumsy way of ...
0
votes
0answers
13 views

Add data to an array and compare to another

I can use cmd to dump a list of wireless networks in range via: netsh wlan show networks > output.txt ::Can I store this to a local variable instead of a text file? Which results in an output ...
0
votes
2answers
44 views

Is this the best way to write this non-numerical/alphabetical sort?

I have various styles of font objects grouped into arrays. Each font object has a property sub_family which is either Regular, Italic, Bold, Bold Italic (or some variation e.g. Italic is sometimes ...
0
votes
1answer
25 views

Create jquery variable from a php/sql query / JSON query

i have been searching this wonderful site of information but havent found exactly what im looking for, only bits and pieces . Im fairly new to the whole JavaScript language/jQuery library but im ...

1 2 3 4 5 1963
15 30 50 per page