Beginner in c++. I have I little problem. I would like to copy content of vector (vector<int> vrsta_2) into 2D array(int tabela[][]). What I got is this:
6729000
11215000
17944000
20187
I would like this:
6729000
1121500
0179440
0020187
Thank you very much for your help.
1 2 3 4 5 6 7 8 9 10 11 12 13
for(u=0;u<niz2.size();u++)//niz.2 is vector
{
for(v=0;v<temp1;v++)//temp1 is a size of particular vector
{
tabela[u][v]=vrsta_2[p++];
if(p==vrsta_2.size()+1)
{
break;
}
cout<<tabela[u][v];
}
cout<<endl;
}