Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (file.is_open()) {
- while (getline(file, line)) {
- list[i] += stoi(line);
- i++;
- }
- }
- file.close();
- for (i = 0; i < 100; i++) {
- cout << list[i] << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement