Compilation error | Sololearn: Learn to code for FREE!

+1

Compilation error

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

1/25/2018 5:45:53 PM

HOGELING TEKENtechniek

4 Answers

New Answer

+4

Please link code, when asking questions. https://code.sololearn.com/cHFmTZbx8hEI/?ref=app You prompt and read like this: cout << "prompt"; cin >> n;

+4

new line is \n not /n teller isn't changed in loop so will never stop

+4

You still have to change this, like John already said: cout << "Welke tafel wil je zien? \n"; cin >> tafel;

+2

Thank you! Now it works!