I am getting this error:-
C:\C++ PROJECTS\CONSOLE\PROJECTS1\num lists menu\main.cpp(6) : fatal error C1001: INTERNAL COMPILER ERROR
(compiler file 'msc1.cpp', line 1786)
with this code. Why?
Thanks Mark S.Code://// A menu that lists various sets of numbers/// #include<iostream> using namespace std; enum Choice{square = 1, cube, exit}; int DoMenu(void); int main(void) { int choice = 0; while(choice != exit) { choice = DoMenu(); switch(choice) { case square: cout << "Square\n"; break; case cube: cout << "Cube\n"; break; case exit: cout << "Byee!\n"; break; } } return(0); } int DoMenu(void) { int choice = 0; cout << "1. Square Numbers\n" << "2. Cube Numbers\n" << "3. Exit\n"; cin >> choice; return(choice); }