摘要: 1、int getc(FILE *stream);从指定输入流 stream 的当前位置读取一个字符,若读到文件尾而无数据时便返回EOF。main(){int c;FILE *fp= fopen("d:\\a.txt","r");fpos_t p=4;fsetpos(fp,&p);c=getc(fp... 阅读全文
posted @ 2014-03-26 10:48 lz3018 阅读(365) 评论(0) 推荐(0) 编辑
摘要: #include#includemain(){int c;printf("getchar:");c=getchar();//缓冲,回显.printf("%d",c);printf("\ngetch:");c=getch();//不缓冲,不回显printf("%d",c);printf("\ngetc... 阅读全文
posted @ 2014-03-26 10:33 lz3018 阅读(262) 评论(0) 推荐(0) 编辑