0

My program isn't working! The time won't print. I'm a begginer, so please guide me and help me improve this code.

https://code.sololearn.com/coBn84Dys46s/?ref=app

3rd Nov 2020, 6:13 PM
Rhea Rajput
Rhea Rajput - avatar
2 Answers
+ 3
cin stops at whitespace characters. Change input to this: cin.getline(time,9); Advices: Use indention! For PM calculate the hours +12
3rd Nov 2020, 7:17 PM
Benjamin JĂŒrgens
Benjamin JĂŒrgens - avatar