1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
int main()
{
account Lst;
string dismiss;
ifstream inFile1;
inFile1.open("Professor.txt", ios::in);
if(!inFile1)
{
cout << "File could not be open !! Press any Key...";
}
else
cout << "\n\n\t\t PROFESSOR LIST\n\n";
cout << "===================================================================================================================\n";
cout << "A/c no.\t NAME\t Date\t Phone\t Address\n";
cout << "===================================================================================================================\n";
while (!inFile1.eof())
{
getline(inFile1,Lst.acno1,',');
getline(inFile1,Lst.name_pro,',');
getline(inFile1,Lst.date1,',');
getline(inFile1,dismiss,'"');
getline(inFile1,Lst.phone,'"');
getline(inFile1,dismiss,'"');
getline(inFile1,Lst.address_pro,'"');
Lst.report1();
}
inFile1.close();
return 0;
}
|