在一个问题中遇到了一个小问题,自己试了一下,小结一下 关于fgets的用法,在man手册中是这样解释的: char *fgets(char *s, int size, FILE *stream); fgets() reads in at most one less than size characters from stream and stores them
1.getchar int getchar ( void ); Get character from stdin Returns the next character from the standard input (stdin). It is equivalent to calling getc with stdin as argument. get