Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Counting without getche() function.
Name: Mikel Date: May 17, 2003 at 20:41:45 Pacific OS: win98 CPU/Ram: 166
Comment:
#include #include void main() { int count=0; printf("\n\tType any phrase"); while(getche() !=13) //13 is For enter key { count++; } printf("\nCharactor count is =%d",count); getch() } out put
Type any phrase CAT charactor count is 3
i want to count the charactors without using the getche() function. Is there any way to make the program to count the charactors without using getche()..? if yes then please write the programmm.i shall be soo much thankful to you. thanks in advance...
Summary: Using DevC++ 4. Trying to learn I/O. Is there a way to take input from the keyboard without halting the program until input is taken? so far I am using the getch() function, to send a character as soo...
Summary: The getchar function requires you to enter 1 character followed by hitting the enter key. The problem after you get the 'y' or 'n' with this this function there is still a character in the buffer from...
Summary: I am just starting this program so it is not completely finished yet. All I am trying to do is compile (DEV-c) it without errors then start writing the functions. I am getting a few compile errors t...