خرید بک لینک

Vote count: 0

I was asked to enter an hour and a minute on the same line. But when I enter the hour, it automatically goes to a new line, and I'm only able to enter the minute on the next line. However, I want to enter the hour and minute on the same line with a colon between them. It should look like this

Time: 4:54

But my code produces this:

Time: 4

54

cout << "ntTime: "; 
cin >> timeHours;
cin.get();
cin >> timeMinutes;

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: دوشنبه 17 خرداد 1395 ساعت: 5:20

صفحه بندی