My program isn't working! The time won't print. I'm a begginer, so please guide me and help me improve this code. | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
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
1 Respuesta
+ 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