0% found this document useful (0 votes)
23 views2 pages

Deezcode

The document contains code with multiple while loops that are reading in data from files and splitting the data on commas. The loops populate arrays and objects with the file data for processing.

Uploaded by

Muazzam Shah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views2 pages

Deezcode

The document contains code with multiple while loops that are reading in data from files and splitting the data on commas. The loops populate arrays and objects with the file data for processing.

Uploaded by

Muazzam Shah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 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