+ 1

What's wrong with my program? I'm not finding my mistake...

#include <iostream> using namespace std; int menu() { int num; do { cout << "Enter a number\n"; cin >>num; cout << "your number is: "<<num<< endl; } while (num != 50); return 0; }

26th Sep 2018, 11:46 AM
Tom Eckert
Tom Eckert - avatar
2 Answers
+ 4
It doesn't have a main() function
26th Sep 2018, 11:55 AM
Anna
Anna - avatar
+ 1
oh right!! I wrote "menu" instead of "main". Might have been the autocorrect. thanks!
26th Sep 2018, 9:33 PM
Tom Eckert
Tom Eckert - avatar