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.

learn more… | top users | synonyms (2)

0
votes
0answers
5 views

How to view contents of an array while debugging in Code Blocks?

This is probably a silly question and i am posting this Post-Googling, The question is, How do i view the contents of an array while debugging? I am using code::blocks 13.12 version and i set a ...
0
votes
2answers
14 views

find out where this group a value

I also wonder how I can go about finding the array where $var is Example $var = 150 the array is [2] $var = 150 $base[0] = 0; $base[1] = 60; $base[2] = 3600; $base[3] = 86400; $base[4] = ...
0
votes
1answer
9 views

Trouble with Classes C++ Reversi Program

I'm having trouble with classes for a C++ program of a game of Reversi. Basically my problem is trying to get a 2D array (which is a private class variable) to update after exiting a function. The ...
3
votes
2answers
17 views

Call-time pass-by-reference error, unable to fix code

Since i updated to php 5.4 i get the error Call-time pass-by-reference has been removed, as i read, removing the & should solve it. It does, but now my code does not work anymore. I need to make ...
0
votes
1answer
11 views

Backbone.js Underscore.js comparing a collection vs array

I'm basically trying to do what is done with this question, but with an array and return all objects using the values of the corresponding array, not just the value: Filter backbone collection by ...
0
votes
2answers
25 views

How to access element of multi-dimension Javascript array

I have a Java script array as below: - the first element is a string - the second element is a array -- the first element of this is a string -- the second element is an array --- the first element of ...
1
vote
3answers
18 views

Javascript Array Push Inside While Pop Loop

I've made this jsfiddle and I can't explain why the following doesn't result in an array of 5 objects all with different id properties: var arr = ["1", "2", "3", "4", "5"]; var clone = {"id": "0", ...
0
votes
0answers
4 views

Make JSON php request from Firefox addon

i'm writing a Firefox addon on sdk, i need to use in my main function an array. this array contains a list of data located in my BD. that’s why im using a php file to connect the BD and echo data in ...
0
votes
2answers
14 views

Increment field only if command on array was successful

I have a Schema like this: var ClassSchema = new Schema({ name: String, kids: [{ type: Schema.Types.ObjectId, ref: 'Kid' }], kidsCount: { type: Number, default: 0} }); Now I want to ...
1
vote
1answer
5 views

how to access array with data in another array matlab

Assume I have array A and B B contain data that index array of Array A ( Example B(1,:) = [2 3] it mean that I want to access data of array A(2,3) ) I want to show the all data A that have in B I ...
1
vote
0answers
23 views

how do you use the indices in a numpy array for calculations

So I want the perimeterpoints function to work, but I am not sure how to run through the indices of my array. I thought len of my array would work, but it said 'in' object is not iterable. So if I had ...
0
votes
0answers
25 views

Getting an array of checkbox values

Please look at this answer first, http://stackoverflow.com/a/15849972/3326270 Now, I'm having a problem because I want to know the status of ALL the checkboxes, not just the values of the checked ...
1
vote
0answers
9 views

All in one IE conditional function

Trying to create and "all-in-one" IE conditional function. Pretty much I'd like to be able to do the following: If no variable is passed then check for IE in general Pass it 1 version of IE and ...
0
votes
5answers
37 views

JavaScript Array need to display many hidden fields

Fiddle link here <script> function show1() { if (document.getElementById("check1").checked == true) { document.getElementById("info1").style.display="inline"; } else { if ...
-1
votes
0answers
15 views

Shortest Path 2d array javascript

Hello so i am trying to come up with a 2d shortest path algorithm using Dijkstra's shortest path algorithm. I understand the concept of the algorithm we are using a breadth first search. I believe my ...

15 30 50 per page