Sunday, April 10, 2011

Function gets (), getchar (), getch (), and getche () In C + + Programming

Function gets (), getchar (), getch (), and getche () In C + + Programming

Hallo bro, this time I will be sharing about gets (), getchar (), getch (), and getche () in C + + Programming.

1. gets ()
Function gets () is used to input data of type character and can not be used to enter numeric data. Here is a sample program.
2. getchar ()
Getchar () function is used to read data of type character.


3.getch () And getche ()
That is a function that when we input a character, then there will be an emphasis enter automatically, and moved to the next line.
The function getch () characters entered will not be displayed on the screen so frequently used to request input of password.
Getche function () characters entered will be displayed on the screen.

No comments:

Post a Comment

 
THANK YOU FOR VISITING