Hi serginsurge,
This could be casuing the problem:
You are using the "cout" command. for this you need to include the "cstdlib" like so:
CODE
#include <cstdlib>
and also you can declare that you are using the namespace "std" after the includes likse so
CODE
using namespace std;
Also at the moment you are using a "if" statements to process the menu options. A switch statement would be more suited to this. It is setup along the lines of :
CODE
while (what != 4){
switch (what) {
case 1:
//what happens if 1 is entered
break;
case 2:
//what happens if 2 is entered
break;
case 3:
//what happens if 3 is entered
break;
case 4:
cout<<"Thank you for playing cat-A-Lizer with us\n";
break;
default:
cout<<"Press 1 to meow, 2 to sleep, 3 to wake, 4 to end";
cin>>what;
break;
}
}
makes it a little easier to read and update. Also you need to initiate "status" to equal something or it could equal anything.
I hope this helps a little!