if(alphabet[i]=='_' && letter[i]==alphabet[i])
{ printf("letter already inputted!"); }
is this correct?
Type: Posts; User: Hemerson
if(alphabet[i]=='_' && letter[i]==alphabet[i])
{ printf("letter already inputted!"); }
is this correct?
if(alphabet[i]=='_' && letter[i]==alphabet[i]
{ printf("letter already inputted!"); }
is this correct?
Please? i badly need it, even just show me two - three lines of code that check if the letter has already been chosen.
Sir can you show me the Code?
good day to all, can anyone help me how can my program read if a letter is inputted again it prompts "letter inputted already"? heres my code:
#include <stdio.h>
#include <string.h>
#include...
@adak, how to increment by two?...
:::updated:::
i got it...hehehe, thanks.
i did'nt get it clearly, sorry sir. can you give me some examples?. thanks.
@anduril462, there is another error that i can't fix...the repitition of letter...when i enter again a letter, at first its ok...but entering again and again the letter, it automatically saying that...
@anduril462 thank you very much, its working...
when i always run the program then started to input a correct letter, the total_tries always trigger to decrements by 1 and when i am going to input a wrong letter it is decrements by 2...i cant find...
but its only works in TurboC not in DevC++.
its working thanks!!...
[Linker error] undefined reference to `gotoxy' , im using dec c++ as a compiler.
reply for this please, i really need your help. :(
hello there, i got problem with my code, when i starting to guess a letter and hit the enter, the letter i've guess is not printing in the blank i made. can someone help me to fix the code? thanks.
...
Okay i got it! thanks! i'll be back when i got stuck again. :)
Sir. what is function memset of string.h?
@click_here how? can you give me some code example? :)
sorry its for adak not for you click_here. sorry for the misunderstand.
i can't get your point, but i include stdio.h, conio.h, stdlib.h...can you give more explanation...
@adak, here is my lay out example:
type a word: *** <----this is the ouput of the code i post above. (dog)
the word to guess is: _ _ _
enter a letter: d
===================================...
can someone help me to add a code to make my inputted letter put in the blank. thanks in advance.
Hi there. i got stuck with this code. i can't get the right code for the loop to put the letter into the blank. Can anyone help me here.
thanks a lot.
printf("enter a word to guess: \n"); ...
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...
char...
okay, thanks again... :) , i'll ask questions again if i got stuck...