I am trying to make a program.. where yo guess a word ..lets say magic. and the program will reconize the word and print it up on a chart.
i've tried everything i can think of and its probably a really simple answer but the answer to this problem will be greatly appreciated.
I'm Using Microsoft Visual C++ 6.0.
CODE: ______________________________________________
if (quest==1)
{
gotoxy(40,8);
cout<< "Guess the Word : "<<endl;
while (ans1==false)
{
gotoxy(40,9);
cout<<" "<<endl;
gotoxy(40,9);
cin>>guess;
if (guess == answer[1])
{
gotoxy(1,1);
cout<<"M"<<endl;
gotoxy(3,1);
cout<<"a"<<endl;
gotoxy(5,1);
cout<<"g"<<endl;
gotoxy(7,1);
cout<<"i"<<endl;
gotoxy(9,1);
cout<<"c"<<endl;
ans1=true;
}