Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <string>
- /* run this program using the console pauser or add your own getch, system("pause") or input loop */
- using namespace std;
- char imie;
- char nazwisko;
- int main(int argc, char** argv) {
- cout<<"podaj imie:";
- cin>>imie;
- cout<<"podaj nazwisko:";
- cin>>nazwisko;
- fstream plik;
- plik.open("wizytowka.txt",ios::out);
- plik<<imie;
- plik<<nazwisko;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement