Advertisement
Guest User

Untitled

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