function
<cstdio>
getcharGet character from stdin
Returns the next character from the standard input (stdin).It is equivalent to calling getc with stdin as argument.
1
2
3
4
5
6
7
8
9
10
11
12
13
/* getchar example : typewriter */
#include <stdio.h>
int main ()
{
int c;
puts ("Enter text. Include a dot ('.') in a sentence to exit:");
do {
c=getchar();
putchar (c);
} while (c != '.');
return 0;
}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4