+ 1
What is wrong with this code!
Soooo, I'm creating a code that involves a if-else-if statement using user input but it's not working! It's not printing anything! https://code.sololearn.com/cHv02dEhPEOo/#cpp
3 odpowiedzi
+ 2
Use
getline(cin, shape);
in line 7.
cin will only read the first word. getline reads the whole line you entered :)
+ 2
thx!
+ 1
well then no of the conditions were met.
maybe add an else as an default