0
HELP! I'm a beginner and i don't know what's wrong in my code. Can you help me? Thank you.
6 Respostas
+ 4
you also wrote cin as Cin so there's a mistake and a char is a single character for it to work right you would need to use string
+ 2
As I said, I've not done this yet, but by looking at the errors maybe you could try 'const char' instead of 'char' ?
As for 'else without a previous if' errors try this:
if ( y = x ) { cout << a; } instead of if ( y = x ) { cout << a};
Good luck :)
+ 1
Hi Beatrice,
I haven't done C++ yet but, are you not missing a closing bracket in your main() ?
Also you're declaring ints but you are using chars, don't know if that makes a difference?
+ 1
yes! that's right. i haven't fought about that. thank you very much! and...do you now if cin is ok for chars or not? thank you again
+ 1
thank you for your help
0
ok i changed it but it still does not work. why?