Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. //while(!inp.eof())
  2. //  {  
  3.         while(inp.peek() == '\n'|| inp.peek() == ch2 || inp.peek() == ch1)inp.ignore();
  4.         if (inp.eof())
  5.             break;
  6.         getline(inp,course,ch2);
  7.         if(inp.peek() == ch2)inp.ignore();
  8.         getline(inp,grade,ch2);
  9.         if(inp.peek() == ch2)inp.ignore();
  10.         inp >> hours;              
  11.         s1.add_to_list(create_new(course,grade,hours));
  12. //  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement