I am a real begginer programming in Visual C++ 6.0.
I want to make a text adventure game and I don't know how to start. Knowing me and my types of questions, it's probably some really easy solution...but here's the only code I have to give you an idea of what I want to do:
#include <iostream.h>
int main()
{
char direction;
cout<<"Type 'right', 'left', 'up', or 'down' to move";
cin>>direction;
if (direction == "right") //?
cout<<"You moved right";
return 0;
}
I want it so that when the user types "right" it will displaly "You moved right". If the user types "Left" if will display "You moved left" ...etc.
Thanks,
Funky



LinkBack URL
About LinkBacks
...but here's the only code I have to give you an idea of what I want to do:



