Converting heterogenous vector to array in C++ -


I am looking for a solution to convert a three dimensional vector into a three dimensional array.

I can make a loop in order to copy the array content inside a three dimensional vector, but there is a grip: Vector is formed very odd 2D vectors.

Here is the argument in the manufacturer of my frame:

  std :: vector & lt; Std :: vector & lt; Std :: vector & lt; Double & gt; & Gt; & Gt; & Amp; The first size is not a problem, the second size is the number of rows placed in a file, and the last size is always 2 (the number of data for each line)   [dataset volume] [volume of lines] [data / row quantity]   

Addserie to use the freechart function ( In an XY plot), I need an array of 2D arrays, so I have a simple loop with LKR series I might add. I need to be able to get an array like every element of the first dimension of this array:

  dual data 1 [] [ 2] = {{10, 20,}, {13, 16,}, {7, 30,}, {15, 34}}, {25, 4,},};   

thanks

If I understand my question correctly , Then three nested loops should actually work - each of each vector & lt; vector & lt; Double & gt; & Gt; , and to create two-dimensional arrays within that loop, you should see the vector < Double & gt; s and double s. need to be used. >

EDIT: To clarify, you do not need a three-dimensional array. Instead, a vector and lieutenant; Double [] []> Perhaps your objectives will be because each of the two-dimensional arrays can have a different size.

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -