Advertisement
Guest User

Untitled

a guest
May 29th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. if (file.is_open()) {
  2.  
  3. while (getline(file, line)) {
  4.  
  5. list[i] += stoi(line);
  6. i++;
  7. }
  8. }
  9. file.close();
  10.  
  11. for (i = 0; i < 100; i++) {
  12. cout << list[i] << endl;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement