An array is an ordered data structure consisting of a collection of elements (values or variables), each identified by one (single dimensional array, or vector) or multiple indexes.
0
votes
0answers
6 views
Adding arrays to objects in Javascript creates undefined element
Ok, I've looked around and I can't seem to find anything about this, but I apologize if this is a duplicate. Basically, I'm trying to add arrays to an object as properties. When I create an object ...
-1
votes
0answers
16 views
Javascript Extract Keys from String and save in Array
hello i have this string saved as Variable:
<input type="submit" value="Eintrag erstellen" return false;this.value = 'senden...';$(active_form + '_form').submit();"/>
in <select ...
1
vote
0answers
20 views
detecting general pattern of local maxima in 1D Java array
I am trying to make a simple pitch detection application for an Android phone. I have gotten the phone to display a graph of the autocorrelation values I have computed, which are stored in a one ...
0
votes
2answers
23 views
Putting array containing multiple arrays into mysql table
What I have:
An array with 30 keys, some keys contain only one value, while others contain several (one key contains 28 values). So firstly I don't even know if this will work. But I have tried using ...
0
votes
2answers
40 views
C++ static const array initialization in template class
I have the following template class:
template <unsigned N>
class XArray {
static const int Xdata[N];
};
I want to initialize the static const array for each XArray<N> I used, for ...
1
vote
2answers
30 views
similar text in PHP
I've PHP array something like this
$array = array("foo", "bar", "hallo", "world", "fooo", "bar1", "hall_o", "wor1ld", "foo", "bard", "hzallo", "w44orld");
I want to compare each element of an ...
2
votes
3answers
43 views
Remove duplicates from an ArrayList?
How to remove duplicates from an ArrayList?
I have getCcnptags array as [java,php,c++,c,java,php] which i am getting from bean array, and I am giving hyper link to each array variable, but I want to ...
0
votes
2answers
41 views
Javascript global array undefined
I'm having problems with this javascript code, second alert of (tracking_data) throws 'undefined' like if the variable was deleted or cleared and I don't see any part of the code doing that. I hope ...
-2
votes
3answers
54 views
Simple array not stepping through
int i;
int b = 0;
int a[20];
for (i = 0; i < 20; i++){
a[i] = b+1;
cout << a[i];}
}
//I know this is a simple program but it is not giving the expected output and does not step ...
0
votes
1answer
19 views
store value of zero in zero array in matlab
I need to store some values of certain size (nsents) into a variable like scount below. This array stores numbers (scores) and later the values in the variable scount will be divided with those of a ...
0
votes
0answers
15 views
Matlab sum performance on multi-dimensional arrays
I have a question about sum in matlab.
For a vector (1xN matrices), sum seems to be parallelised. For example,
a=rand(1,100000000);
maxNumCompThreads(2);
tic;for ii=1:20;b=sum(a,2);end;toc
...
0
votes
4answers
33 views
(Qt/C++) Multiple Values in int Array
I am working on a project and it would be much easier if I could fill an int array with more than one int value.
For example:
int array[5];
array[0] == 10, 20, 30;
array[1] == 44, 55, 66;
...
...
0
votes
4answers
79 views
How do I create an array of byte arrays?
I'm kind of new to c++ and my question might have a pretty easy solution, but I couldn't figure it out by myself.
Let's say I have two byte arrays a and b. Each of them contains six bytes.
Now I want ...
0
votes
1answer
19 views
javascript scope issue, dynamically generated objects difObject.array
What I'm trying to do works in AS3, but I'm trying to learn how to use html5 canvas for fun and glory and I'm running into scope problems that I just can't figure out.
I'm using ...
0
votes
3answers
27 views
php sorting array based on three inner-array key-values
I am looking to do some complex array sorting, but I have no idea where to start. The inner array has three relevant keys for sorting: first the year (numerical ASC), then the month (numerical ASC) ...