Dec 16, 2003 #1 cppdev Programmer May 12, 2003 23 US Would this : vector <string>VRow; vector <VRow> VColumn; be valid ? if so how would one access VRow to add/delete/edit ? Thanks in advance,
Would this : vector <string>VRow; vector <VRow> VColumn; be valid ? if so how would one access VRow to add/delete/edit ? Thanks in advance,
Dec 16, 2003 #2 Cagliostro Programmer Sep 13, 2000 4,226 GB no, use typedeg vector <string> VRow vector <VRow> VColumn; or vector <vector<string> > stringTable; Ion Filipski Upvote 0 Downvote
no, use typedeg vector <string> VRow vector <VRow> VColumn; or vector <vector<string> > stringTable; Ion Filipski
Dec 16, 2003 Thread starter #3 cppdev Programmer May 12, 2003 23 US What would be correct syntax to access the row elements ( VRow ) ? Thanks in advance Upvote 0 Downvote
Dec 16, 2003 #4 Cagliostro Programmer Sep 13, 2000 4,226 GB typedeg vector <string> VRow; vector <VRow> VColumn; VRow a; VColumn x; a.push_back(string("hello"); a.push_back(("good bye"); x.push_back(a); cout<< x[0][0].c_str()<< endl; .. Ion Filipski Upvote 0 Downvote
typedeg vector <string> VRow; vector <VRow> VColumn; VRow a; VColumn x; a.push_back(string("hello"); a.push_back(("good bye"); x.push_back(a); cout<< x[0][0].c_str()<< endl; .. Ion Filipski