Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- freopen(CON,"r",stdin).
- #include <bits/stdc++.h>
- using namespace std;
- int main()
- {
- freopen("input.txt","r");
- string word;
- cin >> word;
- fclose(stdin);
- //?????????????????????????????????
- string word2;
- cin >> word2;
- cout << word << " " << word2;
- }
- #include <fstream>
- // ...
- std::ifstream file ("input.txt", std::ifstream::in);
- std::string word;
- file >> word;
- file.close(); // можно не делать если область жизни переменной file заканчивается
- std::string word2;
- std::cin >> word2;
Add Comment
Please, Sign In to add comment