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

routing - AngularJS State management ->load multiple states in one page -

php - mysql multiple keyword search in any order -

unity3d - Problems porting a GLSL shadertoy shader to unity -