Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<fstream>
- #include<string>
- using namespace std;
- void zad1()
- {
- string a;
- ifstream wejscie("text.txt");
- while (!wejscie.eof())
- {
- getline(wejscie, a);
- cout << a << endl;
- }
- wejscie.close();
- }
- void zad2()
- {
- string a;
- ofstream wyjscie("output.txt");
- getline(cin, a);
- wyjscie << a;
- wyjscie.close();
- }
- void zad5()
- {
- string a;
- ifstream wejscie()
- }
- int main()
- {
- zad2();
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement