0

Can anyone look at my code and tell me what i did wrong?

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

2nd Apr 2017, 12:57 AM
Daniel
Daniel - avatar
5 Respostas
0
You didn't declare the commands variable, you didn't put : // after each case # (for example the first case would be case 1: //(hello in french)) so you meet the correct syntax and comment your... ummm... comments. You also forgot to put a ; after the last cout, the breaks after each case, and you switched the positions of a " and a ( (I don't remember which ones). EDIT: the last error I was talking about is in the line 9.
2nd Apr 2017, 1:38 AM
Luca Garrera
0
maybe I should learn the thing first before writing down code
2nd Apr 2017, 1:55 AM
Daniel
Daniel - avatar
2nd Apr 2017, 2:01 AM
Daniel
Daniel - avatar
0
You just put the : in wrong places (you didn't correct the other things). So, reread my previous post, try to correct the errors and if you still can't make it to work I'll write​ an example :)
2nd Apr 2017, 2:07 AM
Luca Garrera
2nd Apr 2017, 2:13 AM
Daniel
Daniel - avatar