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. When tagging a question with this tag, also tag the question with the programming language being used unless your ...

learn more…| top users | synonyms (12)

0
votes
0answers
15 views

Declaration of array inside struct fails sometimes

What makes the following code fail on some Linux/gcc environments? I declare a struct and then create an "instance" of this struct. The problem is with an array, which should hold separate strings and ...
0
votes
0answers
15 views

Could you give me your opinion on my code(beginner)

i am currently taking a class at my local community college for java programming as well as trying to learn as much as i can on my own time. I would like your opinion on a program i wrote that would ...
1
vote
0answers
5 views

Unexpected result with kotlin contentEquals on DoubleArray

I have a need to compare two DoubleArrays in order to determine if they have the same values in the same order. To do so I have used the contentEquals extension function, however, it treats 0 and -0 ...
0
votes
0answers
14 views

why numpy returns an empty array when you subset an array with indices higher than its shape? [duplicate]

Why does numpy returns an empty array when you subset an array with indices higher than the shape of the array? is this somewhat a bug or what is the advantage of this?I would expect an error ...
0
votes
1answer
24 views

How do I use an array in a if parented by a for loop in java?

I am trying to loop through the colors in my array using a for loop and IF the array gets to the 'orange' then have it break the loop.Here is my code(I'm only two weeks into coding, please educate me ...
1
vote
1answer
31 views

16 byte unsigned char array as a number?

I am doing some cryptography with 128bit keys which necessitates using 16byte data chunks which I am storing as 16 byte unsigned char arrays.unsigned char nonce_counter[16]="xCv6Jk0neeV5GoSZ";I ...
0
votes
0answers
11 views

Traverse and compare two arrays, where not coincide, to place a zero and where to place the value of the first array

I have two arrays, one of them contains dates with intervals of 10 min, in UNIX format and the other contains data extracted from a query, containing UNIX dates and a count, the intention is to ...
0
votes
0answers
13 views

Arduino - char, const char char* array issues for MQTT client.publish

Hi Please can I have you help. I have been working on this for days and cannot waste any more time.I am using Arduino IDE to programme an ESP8266, which is connected to a number of sensors. The end ...
0
votes
1answer
17 views

Search in multidimensional array by key and return the sub array

I have multidimensional array and i want to extract a sub array by its key.Example array:[libra]=> Array([schema_id]=> LibraModel[libra_guid]=> a2d02184-5a83-0f1b-673d-...
0
votes
1answer
35 views

C++ Making an array of pointers to objects(nodes) on Stack

I was trying to addEdge() to my nodes and I noticed that when i tried to access a "node" on the _nodes array it did not retain the values of the construction, for example like the id. It was suppose ...
-3
votes
3answers
46 views

Why does my method continue past the length of the array?

I have been struggling with this for a couple hours now and I finally got this method to almost work except for the fact that it always goes 1 entry past the length of the array. How can I fix this?...
-1
votes
1answer
22 views

Javascript - How can I change one list without modifying the other [duplicate]

I have the following code:const heroes=[{ name: 'Wolverine', family: 'Marvel', isEvil: false },{ name: 'Deadpool', family: 'Marvel', isEvil: false },{ name: 'Magneto', ...
1
vote
2answers
11 views

Fetching a subset of array in the prescribed order

I have a master array and a query array:-master_array=[2;5;3;7;1];query_array=[1;3];All elements of query array will be a member of the master array. That is a rule. I have to find the order of ...
-4
votes
3answers
33 views

JavaScript adding values of key value pair

I have an array like this: [0:{20: 24, 30: 37, 40: 17, 50: 16, 60: 5, 70: 2, day: "1"}1:{20: 69, 30: 163, 40: 88, 50: 42, 60: 27, 80: 2, -1: 3, day: "2"}2:{20: 78, 30: 220, 40: 88, 50: 49, 60: ...
-3
votes
1answer
53 views

Calculate array sum by given array only, without passing it's length [duplicate]

I need to calculate array sum, but attribute must be ONLY this particular array.bool solution(int arr[]) {int counter=0;int len=sizeof(arr) / sizeof(arr[0]);std::cout << len ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,