http://zhidao.baidu.com/question/2009581135385325748.html Read More
posted @ 2015-11-18 20:49
天王星B
Views(199)
Comments(0)
Diggs(0)
头文件:#include 函数getchar()用于从标准输入控制台读取字符,原型如下: int getchar(void);[参数]该函数没有参数。[返回值]函数的返回值为用户输入的第一个字符的ASCII码,若出错返回-1,且将用户输入的字符回显到屏幕。如果用户在按回车键之前输入了不只一个字符,其... Read More
posted @ 2015-11-18 20:21
天王星B
Views(4472)
Comments(0)
Diggs(0)
和机器字长及编译器有关系:所以,int,long int,short int的宽度都可能随编译器而异。但有几条铁定的原则(ANSI/ISO制订的):1 sizeof(short int)<=sizeof(int) 2 sizeof(int)<=sizeof(long int) 3 short int... Read More
posted @ 2015-11-18 19:31
天王星B
Views(396)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号