Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. while (ip.good()&& (i < size)) {
  2. getline(ip, st[i], ',');
  3. getline (ip, sx[i], '\n');
  4. cout << st[i];
  5. stringstream convertt(st[i]);
  6. convertt >> t[i];
  7. stringstream convertx(sx[i]);
  8. convertx >> x[i];
  9. i++;
  10. }
  11. ip.close();
  12. for (int n=0; n< size; n++) {
  13. cout << t[n]<<endl;
  14. }
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement