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 tel;
- int main()
- {
- cout<<"Podaj imie";
- cin>>imie;
- cout<<"Podaj nazwisko";
- cin>>nazwisko;
- cout<<"Podaj numer telefonu";
- cin>>tel;
- fstream plik;
- plik.open("wizytowka.txt",ios::out | ios::app);
- plik<<imie<<endl<<nazwisko<<endl<<tel<<endl;
- plik.close();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement