Is there a way to make a program respond to words? Like for instance, if I have this in a program:
or would it be more like:Code:cin >> comm; if ( comm = "North" ) {
...or am I just dreaming that it would be that simple?Code:cin >> comm; if ( comm = North ) {
Here is the error I get with this:
" invalid conversion from `const char*' to `char' "