it will search the whole file once then i cant get it to reset without restart the program.
Code:
cin >> paycode;
while(paycode!=0)
{
while(!infile.eof())
{
infile >> search;
infile.ignore(1);
infile >> salary;
if (search == paycode)
{
cout << salary;
}
}
Comment