Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream> // file stream
- using namespace std;
- int main()
- {
- int numar;
- ifstream fin("bac.in"); // input file stream
- //ifstream fin("C://Users/bogda/Desktop/bac.txt"); // input file stream
- ofstream fout("bac.out");
- while (fin >> numar) {
- fout << numar << " ";
- }
- fin.close();
- fout.close();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment