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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

dataset - MPAndroidchart returning no chart Data available -

post - imageshack API cURL -