Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while(1)
- {
- if (inp.peek() == '\n'|| inp.peek() == ch2 || inp.peek() == ch1) inp.ignore();
- if (inp.eof()) break;
- getline(inp,course,ch2);
- if(inp.peek() == ch2)inp.ignore();
- getline(inp,grade,ch2);
- if(inp.peek() == ch2)inp.ignore();
- inp >> hours;
- s1.add_to_list(create_new(course,grade,hours));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement