class Row
{
public:
int flows_len; // number of rows to initialize the flows array
string **flows; // flows array
int Num_flows; // Number of flows parsed
ifstream file;
void readNextRow(istream& str){
for (int j=0;j<flows_len;j++){
string line;
getline(str,line);
stringstream lineStream(line);
string cell;
for (int i=0;i<47;i++){
getline(lineStream,cell,','); // get the comma separated strings-columns-fields
flows[j][i]=cell; // fill the flows array
}
Num_flows++; // number of rows-flows parsed ++
}
}
Row (int num){ // Class Constructor
flows_len = num+1;
flows = new string *[flows_len];
for (int i=0;i<flows_len;i++){
flows[i] = new string[47];}
Num_flows=0;
};
~Row (){cout << "~Row" << endl;};
};
It's working great but i need to skip the first line with the field headers.