Advertisement
Guest User

Untitled

a guest
Sep 17th, 2014
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. cout<<"Enter a line of comma (,) delmited data set: ";
  2. getline(cin, str);
  3. while(1){
  4. if(str.find(',') == -1){LinkedQueue->insert(LinkedQueue->getLength()+1 ,str);break;}
  5. LinkedQueue->insert(LinkedQueue->getLength()+1 ,str.substr(0, str.find(',')));
  6. str = str.substr(str.find(',')+1, str.length());
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement