Excluding what I don't know about look.h and info.h, there's quite a bit wrong with your code:
>while (goal > clock());
A busy wait loop is extremely antisocial in a multitasking system.
>HP = 100;
>EXP = 0;
>room = 1;
Unless these guys are defined in one of your headers (which is a bad idea in the first place), they're undefined and you can't use variables without defining them.
>switch (command)
You can't do a switch on a string, only integral types.
>case 'look':
>case 'info':
These are character literals, not string literals. It's generally a bad idea to use multi-character character literals because they're implementation-defined unless you use very specific escape sequences.
>binary '>>' : no operator defined which takes a right-hand operand of type <string>
>binary '<<' : no operator defined which takes a right-hand operand of type <string>
These errors mean that operator << and operator >> don't recognize the type that you're using. Usually that means you forgot to qualify for the std namespace. With your code, that's not the case, but not knowing the contents of your headers makes it harder to determine the exact problem.
|