0
Hello, I need your help. Please how to convert vector a1 to 2d vector a4?
8 odpowiedzi
+ 1
If you run the code you can see what is expected to get. <a1> is vector with rearraged elements from vector <a>. Now I would like to get 2d vector <a4> with elements of vector <a1>.
This vector <a4> should have 10 rows and 3 columns.
+ 1
Ok I added a block using nested for...loop copying data from <a1> to <a4>.
+ 1
Amazing, thank you.
0
Can you show me a data example for <a1>, and how <a4> should look like after the conversion?
0
Is there any simplier way with for loops?
0
Are you not allowed to use built-in algorithm functions?
0
Your solution is correct, but I haven't learned the iterators yet.