Just forget the 'char letter' that means not at all... just a less
functional earlier code that i made! =D
> The function getchar() returns an int number that represents a char. See
> below:
>
>
>
> #include <stdio.h>
>
> void main()
> {
> char letter;
> puts("type key then [ENTER]");
> do {
> //your stuff goes here
> } while(getchar() != 'a');
> }
>
>
>
> hope it helps!
>
|