Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (ip.good()&& (i < size)) {
- getline(ip, st[i], ',');
- getline (ip, sx[i], '\n');
- cout << st[i];
- stringstream convertt(st[i]);
- convertt >> t[i];
- stringstream convertx(sx[i]);
- convertx >> x[i];
- i++;
- }
- ip.close();
- for (int n=0; n< size; n++) {
- cout << t[n]<<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement