zoi20

Untitled

May 8th, 2014
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.46 KB | None | 0 0
  1. #include <iostream>
  2.  
  3.  
  4.  
  5. using namespace std;
  6. struct vrijeme
  7. {
  8.    int sat,minu,sek;
  9. };
  10. void ispisiVrijeme(const Vrijeme &v)
  11. {
  12.   if(v.sat<10) cout<<0;
  13.   cout<<v.sat<<";"
  14.   if(v.minu<10) cout<<0;
  15.   cout<<v.minu<<";"
  16.   if(v.sek<10) cout<<0;
  17.   cout<<v.sek<<";"
  18. }
  19.  
  20. Vrijeme SaberiVrijeme(const vrijeme &v1, const vrijeme&v2)
  21. {
  22. vrijeme v3{0,0,0};
  23. v3.sek=v1.sek+v2.sek//itd. za sate i to
  24. }
  25.  
  26.  
  27. int main()
  28. {
  29.     cout << "Hello world!" << endl;
  30.     return 0;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment