Questions tagged [dynamic-arrays]

Anything related to dynamic arrays, i.e. array-like data structures where the length of the array (the number of its elements) can be changed at runtime, thus allowing adding or removing elements without explicit memory allocation and management.

Anything related to dynamic arrays, i.e. array-like data structures where the length of the array (the number of its elements) can be changed at runtime, thus allowing adding or removing elements without explicit memory allocation and management.

1815 questions
0
votes
2 answers

Queue in labview formula node

Is there a way to get a queue of ints in the formula node of Labview? I could use an array, initialize it outside with a max size and use that but is there another way? Maybe a sort of dynamic array?
user2839747
  • 255
  • 4
  • 11
0
votes
1 answer

Java, problems with string array of (string) array (maybe dynamic)

To speed-up a lookup search into a multi-record file I wish to store its elements into a String array of array so that I can just search a string like "AF" into similar strings only ("AA", "AB, ... , "AZ") and not into the whole file. The original…
eewing
  • 545
  • 1
  • 4
  • 5
0
votes
3 answers

How to return a dynamic allocated struct of arrays in a method?

I have the following struct and method in the public part of my headerfile: struct InputtedInstructions { string name; string arg1; string arg2; string arg3; }; InputtedInstructions get_instruction(vector& text, int…
cmonnats23
  • 15
  • 1
  • 6
0
votes
2 answers

Slow handling of 2-dimensional arrays in plpgsql

I am programming a stored procedure in PostgreSQL. The algorithm should handle a 2 dimensional array of double precision numbers. As far as I have investigated array operations in Postgres are generic and quite heavy. The simple example I'm trying…
0
votes
2 answers

C# Passing an array as a parameter?

I am trying to understand passing array parameters to methods and creating dynamic arrays in C#. I have 2 questions at the end. This LINQ to XML statement is working well : XDocument doc = new XDocument( new XElement("Processes", …
Jack Houston
  • 49
  • 11
0
votes
2 answers

Any Shortcut method to reinitialize Arrays in vb.net

I have a dynamic array ,where the array size changes according to the no.of rows in database code goes like this : Dim pgm_act_arr(0) As Double Dim pgm_act_count As Integer = no.of rows retuned from database ReDim pgm_act_arr(pgm_act_count) for…
Shivachandra
  • 93
  • 2
  • 8
0
votes
0 answers

Dynamic array with dynamic number of variables with dynamic variable names

I have two sql Datareaders . 1st Data reader with fixed number of columns and fixed column names.2nd Data reader with dynamic number of columns with dynamic names. How can I combine data from two result sets in a single array list. I need to use…
kalyanasundaram v
  • 111
  • 1
  • 4
  • 13
0
votes
1 answer

Error: request for member 'insert' which is of non-class type int* ?? What's wrong?

This is the error I'm getting: StatisticsProcessor.cpp: In member function ‘void StatisticsProcessor::loadData(std::string)’: StatisticsProcessor.cpp:70:16: error: request for member ‘insert’ in…
Riptyde4
  • 5,134
  • 8
  • 30
  • 57
0
votes
0 answers

How to allocate a dynamic array in nasm assembly?

I've looked through tons of examples, but all the code I found was for defining an array of a set size such as array1 resd 10 I want to write code that prompts user to enter numbers, into an array, until he wants to stop. Is there someway to…
Andrew Tsay
  • 1,893
  • 6
  • 23
  • 35
0
votes
1 answer

What is a better way to access properties of JSON object if they have names like option1, option2

The configObj has many properties like { 'name':'test', 'option1': 'test', 'option3': 'test', 'option2': 'test', 'option4': 'test', 'other1':'blah', 'other2':'blah2' } I was wondering if there was a way to do something like this: like convert this…
Zeeshan Abbas
  • 821
  • 6
  • 20
0
votes
3 answers

Counting and then updating array

I have a database with a date field that I want to count the number of unique years and then how many entries for each year. Here is what I have: while ($row = mysql_fetch_array($sql_result)) { $Date = $row["Date"]; //DETERMINE YEARS …
0
votes
1 answer

dynamic allocation using cpp to add new row after

I wanted to add a row to a previously dynamically allocated 2-D array but the complier gives an error that lvalue is required at the line where I am trying to allocate new memory to the new row. #include //#include using…
0
votes
0 answers

dynamic array container with unitialised elements possibility

I am populating network data buffer for sockets send() call. Initially i know buffer maximumSize, and (after populating it) i know finalSize <= maximumSize. I feel convenient having possibility to shrink such a buffer, making it smaller, leaving…
xakepp35
  • 2,878
  • 7
  • 26
  • 54
0
votes
2 answers

want to save multiple records against one entity using sonata admin bundle

I'm using sonata admin bundle and want to save multiple records against one entity. for example; I have three fields in my Entity (id, project, issues). suppose that a project has number of issues, I'm using multiple selection for the issues field,…
0
votes
4 answers

need to create multiple dynamic arrays in c++

I need to create a number of arrays of a certain object where the number I need is dependent on a separate variable the best way to explain it is with a psudo code example: int num = 4; for(int i=0;i
user1828256
  • 25
  • 1
  • 3
1 2 3
99
100