Advertisement
Guest User

Main.cpp

a guest
Oct 13th, 2015
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #include "Osoba.h"
  2. #include <iostream>
  3.  
  4. int main(){
  5. Osoba Pero, Duro;
  6.  
  7. Pero.starost = 20;
  8. strcpy_s(Pero.ime, "Pero");
  9. strcpy_s(Pero.prezime, "Peric");
  10.  
  11. Pero.ispis();
  12.  
  13. //mjenjamo godine
  14. Pero.starost = 50;
  15. Pero.ispis();
  16.  
  17. Duro.starost = 40;
  18. strcpy_s(Duro.ime, "Duro");
  19. strcpy_s(Duro.prezime, "Durasin");
  20. Duro.ispis();
  21.  
  22. system("pause");
  23. return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement