+ 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; }
2 Answers
+ 4
It doesn't have a main() function
+ 1
oh right!! I wrote "menu" instead of "main". Might have been the autocorrect.
thanks!