Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Глава 1. Упражнение 7 */
- #include <iostream>
- #include <cstdlib>
- #include <cstdio>
- #include <fstream>
- #include <string>
- using namespace std;
- int main(int argc, char *argv[])
- {
- ifstream in("main.cpp");
- string line;
- while (getline(in, line)) { // считать строку
- cout << line;
- char x = 0;
- do {
- cin.get(x);
- } while (x != 10); // ждать Enter
- }
- return EXIT_SUCCESS;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement