Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cout<<"Enter a line of comma (,) delmited data set: ";
- getline(cin, str);
- while(1){
- if(str.find(',') == -1){LinkedQueue->insert(LinkedQueue->getLength()+1 ,str);break;}
- LinkedQueue->insert(LinkedQueue->getLength()+1 ,str.substr(0, str.find(',')));
- str = str.substr(str.find(',')+1, str.length());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement