You are on page 1of 2

// file deatil while loop

//---------------------------------------------------------------------------
// {
// a = 0;
// tdy++;
// tempdetaillist.resize(tdy,vector<string>(tdx));
// getline(file1detail, line);
// stringstream ss(line);
// while (getline(ss, temp, ','))
// {
// temprow[a]=temp;
// array[a]=temp;
// cout<<temprow[a];
// a++;
// }
// tempdetaillist.push_back(temprow);
// for (int i=0;i<6;i++)
// {
// tempdetaillist[b][i]=array[i];
// }
// b++;
// }
//---------------------------------------------------------------------------------
----
//******************************
/// inside of getline for loop
// for (int j = 0; j < 10; j++)
// {
// getline(line, list[i][j], ',');
// }
/////////////////
// for (int i = 0; i < 400; i++)
// {
// for (int j = 0; j < 10; j++)
// {
// studentlist[i].sid=list[i][j];
// studentlist[i].studentname=list[i][j];
// studentlist[i].sid=list[i][j];
// studentlist[i].sid=list[i][j];
// studentlist[i].sid=list[i][j];
// studentlist[i].sid=list[i][j];
// studentlist[i].sid=list[i][j];
// studentlist[i].sid=list[i][j];
// studentlist[i].sid=list[i][j];
// studentlist[i].sid=list[i][j];
// studentlist[i].sid=list[i][j];
// studentlist[i].sid=list[i][j];

// }
// }
// getline(file1, line);

// while (temp2 != temp)


// {
// file1 >> temp2;
// if (temp == "Degree")
// {
// x = y;
// }
// y++;
// }
// cout << "X:" << x << endl;
// cout << "Y:" << y << endl;

// while (getline("Lhr_Student_94.txt", line))


// {
// stringstream linestream("Lhr_Student_94.txt");
// string value;

// while (getline(linestream, value, ','))


// {
// std::cout << "Value(" << value << ")\n";
// }
// std::cout << "Line Finished" << std::endl;
// }

// while (getline(file1detail, line))


// {
// tdy++;
// }
// while (getline(file1detail, line))
// {
// a = 0;
// b = 0;
// getline(file1detail, line);
// stringstream ss(line);
// while (getline(ss, temp, ','))
// {
// array[a] = temp;
// a++;
// }
// detaillist[b].setter(array);
// b++;
// // detaillist[b].SID.push_back(array[0]);
// }

You might also like