摘要:
我们使用的很多函数实际上不是函数,而是宏macro。例如:(getc()、putc()实际上也不是函数)#define getchar() getc(stdin)#define putchar((c)) putc((c), stdout)总结C语言的输入输出:#include <cstdio>#include <iostream>using namespace std;int main(){ //注意,声明为int,因为int范围比char要大 int ch; //从stdin中获得一个char ch = getchar(); //把ch输出到stdout... 阅读全文
posted @ 2013-04-06 19:49 俊介三在前进 阅读(175) 评论(0) 推荐(0)
浙公网安备 33010602011771号