database - How to store a table with varying number of columns and rows? C++ -
i'm confused new programming assignment got in class few days ago. asks read info file contains unknown number of rows , columns , sort data. question how do that?
my reasoning if knew number of columns, create array of structures , create new structure each row. since number of columns unknown, don't know how approach this.
also, allowed use <iostream>
<fstream>
, <cctype>
, <vector>
libraries.
you use
std::vector<std::vector<whatevertypeyouwanttostore>>
Comments
Post a Comment