jelenpivo123

main2.cpp

Oct 5th, 2018
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include "Ekran.h"
  4. #include "Televizor.h"
  5. #include "Uredjaj.h"
  6.  
  7.  
  8. using namespace std;
  9.  
  10. void prikaziSerijskiBroj(Televizor t){
  11.  
  12. cout<<"Serijski broj je: " <<t.serijskiBroj<<endl;
  13. }
  14.  
  15. int main(){
  16.  
  17. Televizor t("Samsung", "Samsung LCD", 2009, 49, "ravan", "plava",30, "asdfVSVV12");
  18. Uredjaj *televizor = &t;
  19. televizor->ispisiPodatke();
  20. prikaziSerijskiBroj(t);
  21. t.proveriBroj();
  22.  
  23. system("pause");
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment