Compilation error | Sololearn: Learn to code for FREE!


Compilation error

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

1/25/2018 5:45:53 PM


4 Answers

New Answer


Please link code, when asking questions. You prompt and read like this: cout << "prompt"; cin >> n;


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


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


Thank you! Now it works!