美文网首页C语言
getchar and putchar

getchar and putchar

作者: 这有一株黄金藤 | 来源:发表于2018-04-24 23:10 被阅读0次

存在:#include(标准输入输出函数)    

声明: int getchar(void);

每次获取一个字节的字符;

汉字字符是由两个字符构成的,所以在输入汉字字符的时候,要记住用两个getchar输入高位哥低位,要用两个putchar来输出高位和低位;

相关文章

网友评论

    本文标题:getchar and putchar

    本文链接:https://www.haomeiwen.com/subject/oaefkftx.html