I have a text file that contains these data and the data is be dynamic it can be more or less than 5 columns.
5:346:87:131:1:
4:463:57:152:8:
7:345:77:121:5:
i want to use 2D vectors so that i can get output like this from the vector:
cout<<BData[0][0]<<endl; i will get 5
cout<<BData[1][0]<<endl; i will get 4
cout<<BData[2][2]<<endl; i will get 77
how can i get my 2D vector to get this results?