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
3answers
29 views
How to loop through array and check array values
so I have an Array and I want to loop through the Array and check if the values in it match some strings and if so do something.
This is what I have so far:
var rgt_count = ...
0
votes
0answers
22 views
insert a content of integers array to the vector of QString
I want to insert the content of array of integers :
int arr[n] to the vector of QStrings. std::vector<QString> vQString.- I can do it by inserting the array`s elements one by one :
...
1
vote
1answer
8 views
Excel for Mac 2011: UBound() Not Working
I'm working on making an existing macro-enabled spreadsheet functional on Excel for Mac 2011.
I have a function (Source) that searches arrays for a specified value:
Function ...
2
votes
1answer
8 views
Backbone - How to this.model.save() an attribute with array?
I have this model:
var Contact = Backbone.Model.extend({
defaults: function () {
return {
idc: ""
name: ""
email: "",
phones: new Array()
...
4
votes
5answers
81 views
Why does overflowing array initialization give warning but overflowing assignment does not?
Why does int a[5] = {1,2,3,4,5,6} give a warning while int a[5] = {1,2,3,4,5}; a[5] = 6; does not?
Is it a good practice to do this when I initially declared the array size to be 5?
What if I don't ...
-3
votes
2answers
49 views
C++ Pointers, Text Files and Dynamic Arrays
Im new to C++ and I have decided to do a little car project as something to do.
Basically I want to store Cars in a text file and then display them, which I have done. The problem is that I want the ...
0
votes
2answers
22 views
How can i get (keys,values) from an array contentvalue in android
I speak a little english, sorry if its hard to read.
This is my problem. I did a class extending Asyntask to set values to a database.
But the paremeter i set in generic types was ContentValues.
...
0
votes
0answers
10 views
How to use multidimensional array for expandable tableview in ios?
I have found a solution to make an expandable tableview in ios in this amazing website but it don't work with a 3 dimensionnal array.
The expandable tableview is this one : wannabegeek
In his ...
0
votes
0answers
29 views
Multidimensional Array Searching and Comparing of Specific Elements in C#
I am trying to figure out how to sort through an array based on a column value and I'm having a hard time figuring out how to do it. For example in the following code I might want to be able to search ...
4
votes
2answers
34 views
Why only char[] gets printed out as if with the toString method?
Why only the following works?
char [] indeed = new char []{'a','b'};
System.out.println(indeed);// ehy it's seems like toString has been overridden!
whereas all the others do not seem to have ...
0
votes
2answers
42 views
Stack array using pop() and push()
I have a problem with 2 classes that i've created for a program the uses the stack. The first problem that I get is that when I try to run the program I get a runtime error. Its kind of a difficult ...
0
votes
1answer
8 views
Compare Images In 2D Array Of PictureBoxes
I have a bit of code here (2D array of pictureboxes) that checks if an image belonging one row down from the selected index is equal to My.Resources.NONE. It then performs an image swap between the ...
0
votes
1answer
10 views
resultset to get values from next row
hi i'm new to java how ever i googled and got code to connect to database and retrieve the values.
the problem is ResultSet gets the value only from FIRST ROW of the table
here is the code..
String ...
0
votes
3answers
51 views
ArrayOutOfIndexException android
I have an arrayoutofindexexception in my code below:
ImageView[] bObject = new ImageView[9];
private void getCorrectObject() {
List<Integer> objects = new ...
1
vote
1answer
42 views
C initializing array of arrays
I have this problem. I need to have an array of float arrays to store before i run some functions. How can i accomplish that, since i cannot initialize an array withut a non constant? Should i make a ...