Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main(int argc, char *argv[])
- {
- Time t(argv[1]);
- float angle;
- if ((strcmp(argv[3],"q")!=0) {
- QuartzClock c(&t);
- }
- if ((strcmp(argv[3],"a")!=0) {
- AnalogClock c(&t);
- }
- angle = c.GetAngle()
- string angle1 = convert_angle(angle, argv[2]);
- cout<<"Time is "<<t.GetHours()<<" hours and "<<t.GetMinutes();<<" minutes.\n";
- cout<<"Natural angle is: "<<angle<<"\n";
- cout<<"Converted angle is: "<<angle1<<"\n";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement