getchar ,putchar,gets,puts的辨析
2018-03-20 12:20
621 查看
getchar ()从标准输入中读取一个字符 a=getchar () 返回输入符号的阿斯克吗值,出错返回-1
putchar() 从输出一个字符 如果出错为返回值为EOF ,正确的话返回改符号的阿斯克吗 或者一个无符号整形
gets ()读入一个字符串 遇到回车停止输入,自带\0
puts ()输出一个字符串 遇到\0停止输出并且自带换行。
scanf() 标准输入 当输入字符串时 只读取到空格前。
putchar() 从输出一个字符 如果出错为返回值为EOF ,正确的话返回改符号的阿斯克吗 或者一个无符号整形
gets ()读入一个字符串 遇到回车停止输入,自带\0
puts ()输出一个字符串 遇到\0停止输出并且自带换行。
scanf() 标准输入 当输入字符串时 只读取到空格前。
相关文章推荐
- c/c++学习系列之putchar、getchar、puts、gets的运用
- C/C++中输入输出函数gets(),puts(),getchar(),putchar()等的解析
- getchar()、putchar()、gets()、puts()、cin.get()、cin.getline()、getline()
- getchar()、putchar()、gets()、puts()、cin.get()、cin.getline()、getline()
- c/c++学习系列之putchar、getchar、puts、gets的运用
- putchar()、getchar()、puts()、gets()
- 输入和获取字符的使用(putchar,getchar,puts,gets,fputc,fgetc,fscanf,fprintf)
- getchar() getch() getche() gets() puts() scanf()的用法及区别
- 字符串scanf,getchar,gets,printf,putchar输入输出小测试
- 关于gets()/puts() 和getchar()/putschar() 和getline()
- 输入与输出函数(printf、putchar、puts和scanf、getchar)
- 标准I/O-1-getchar,scanf,gets,fgets,puts,fputs,格式控制
- C语言读取的结束方法及getchar()和putchar(int)、gets
- C语言中printf,scanf,getchar , puts,gets 的使用及区别
- 字符与字符串处理之getchar,gets,putchar,puts函数
- putchar getchar printf scanf puts gets
- Linux C ---getchar() putchar() gets() scanf()
- getchar、gets、puts 详解
- getchar() getch() getche() gets() puts() scanf()的用法及区别
- 深入了解scanf()/getchar()和gets()/cin等函数