hello there, i see this code in the net where i can input a word and make it hidden, but i didnt know how did they make that code...can anyone explain this to me...thanks in advance...
Code:char word[100]; char c; int x=0; printf("enter a word to guess: \n"); do{ c=getch(); switch(c) { case '\r': break; case '\b': printf("\b \b"); if(x>0) --x; break; default: printf("%c", '*'); word[x++]=c; break; } }while(c != '\r'); word[x]='\0';