Guest User

Untitled

a guest
Oct 16th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. A {1,2,3,4}
  2. B {2,1,4,9}
  3. c {5,8,7,6}
  4.  
  5. while(getline(cin,input)){
  6. stringstream ss(input);
  7. string letter;
  8.  
  9. while(!ss.eof()){
  10. ss >> letter;
  11. if (letter == "A")
  12. {
  13. Do this
  14. }
  15. if (letter == "B")
  16. {
  17. Do this
  18. }
  19. if (letter== "C")
  20. {
  21. Do this
  22. }
  23. }
  24. }
Add Comment
Please, Sign In to add comment