Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include<fstream>
- using namespace std;
- int main()
- {
- string imie;
- string miejsce;
- string nr;
- ofstream zapis_do_pliku ("plik.txt", ios::app);
- cout<<"Podaj swoje imie: ";
- cin>>imie;
- cout<<"Podaj swoje miejsce zamieszkania: ";
- cin>>miejsce;
- cout<<"Podaj swoj numer telefonu: ";
- cin>>nr;
- zapis_do_pliku<<"Imie: "<<imie<<endl;
- zapis_do_pliku<<"Miejsce zamieszkania: "<<miejsce<<endl;
- zapis_do_pliku<<"Numer telefonu: "<<nr<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement