Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // B.cpp: Określa punkt wejścia dla aplikacji konsoli.
- //
- #include "stdafx.h"
- #include <iostream>
- #include <fstream>
- #include <string>
- using namespace std;
- class osoba
- {
- private:
- int id;
- public:
- string imie;
- string nazwisko;
- int data; //data urodzenia
- string plec;
- string miasto;
- osoba();
- void MetodaDane();
- };
- osoba::osoba()
- {
- };
- void osoba::MetodaDane()
- {
- cout << endl << "Podaj imie: ";
- cin >> imie;
- getchar();
- cout << endl << "Podaj nazwisko: ";
- cin >> nazwisko;
- getchar();
- cout << endl << "Podaj swoja plec: ";
- cin >> plec;
- getchar();
- cout << endl << "Podaj swoja date urodzenia: ";
- cin >> data;
- getchar();
- cout << endl << "Podaj nazwe swojego miasta: ";
- cin >> miasto;
- getchar();
- };
- int _tmain(int argc, _TCHAR* argv[])
- {
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement