Advertisement
serikov

Untitled

Jun 23rd, 2013
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. int main(int argc, char *argv[])
  2. {
  3. Time t(argv[1]);
  4. float angle;
  5. if ((strcmp(argv[3],"q")!=0)  {
  6.     QuartzClock c(&t);
  7.     }
  8. if ((strcmp(argv[3],"a")!=0)  {
  9.     AnalogClock c(&t);
  10.     }
  11. angle = c.GetAngle()
  12. string angle1 = convert_angle(angle, argv[2]);
  13. cout<<"Time is "<<t.GetHours()<<" hours and "<<t.GetMinutes();<<" minutes.\n";
  14. cout<<"Natural angle is: "<<angle<<"\n";
  15. cout<<"Converted angle is: "<<angle1<<"\n";
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement