Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- using namespace std;
- string imie, nazwisko;
- int nr_tel;
- int main()
- {
- cout << "Podaj imie: "; cin>>imie;
- cout << "Podaj nazwisko: "; cin>>nazwisko;
- cout << "Podaj numer telefonu: "; cin>>nr_tel;
- fstream plik;
- plik.open("wizytowka.txt", ios::out | ios:app);
- plik<<imie<<endl;
- plik<<nazwisko<<endl;
- plik<<nr_tel<<endl;
- endl;
- plik.close();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement