Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Helikopter
- {
- private:
- int regBroj;
- int maksBrz;
- int brojSjedista;
- public:
- void unos();
- void ispis();
- Helikopter(int a, int b, int c);
- };
- Helikopter::Helikopter(int a, int b, int c)
- {
- a=regBroj;
- b=maksBrz;
- c=brojSjedista;
- }
- Helikopter::unos();
- {
- cout << "Unesi registarski broj helikoptera: "
- cin >>a;
- cout << "Unesi maksimalnu brzinu helikoptera: "
- cin >>b;
- cout << "Unesi broj sjedista helikoptera: "
- cin >>c;
- }
- Helikopter::ispis();
- {
- cout << "Registarski broj za helikopter je: " <<a <<endl;
- cout << "Moze ici maksimalnom brzinom: " <<b <<endl;
- cout << "Broj sjedista helikoptera jeste: " <<c <<endl;
- }
- int main():
- {
- Helikopter h;
- h.unos();
- h.ispis();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement