ye' could chain the cin operation together like this:
cout << "Enter clock time: (HH MM SS) ";
cin >> hour >> min >> sec;
of course this method is highly dependant on the user making proper input seperated with white spaces.
Clinton Portis
Practically a Posting Shark
833 posts since Oct 2005
Reputation Points: 237
Solved Threads: 118