+ 1

Compilation error

my program: tafels has a compilation error. Why is this happening?

25th Jan 2018, 5:45 PM
HOGELING TEKENtechniek
HOGELING TEKENtechniek - avatar
4 Answers
+ 4
Please link code, when asking questions. https://code.sololearn.com/cHFmTZbx8hEI/?ref=app You prompt and read like this: cout << "prompt"; cin >> n;
25th Jan 2018, 6:00 PM
John Wells
John Wells - avatar
+ 4
new line is \n not /n teller isn't changed in loop so will never stop
25th Jan 2018, 6:03 PM
John Wells
John Wells - avatar
+ 4
You still have to change this, like John already said: cout << "Welke tafel wil je zien? \n"; cin >> tafel;
25th Jan 2018, 6:50 PM
Paul
Paul - avatar
+ 2
Thank you! Now it works!
25th Jan 2018, 7:02 PM
HOGELING TEKENtechniek
HOGELING TEKENtechniek - avatar