C语言,在编译器上,认识正确的认识制表符。
1、#include<stdio.h>
int main()
{
char cChar1; /*字符型变量cChar1*/
char cChar2; /*字符型变量cChar2*/
int iInt1; /*整型变量iInt1*/
int iInt2; /*整型变量iInt1*/
cChar1='a'; /*为变量赋值*/
cChar2=22;
iInt1='a';
iInt2=22;
printf("%c\n",cChar1); /*显示结果为a*/
printf("%d\n",cChar2); /*显示结果为22*/
printf("%c\n",iInt1); /*显示结果为a*/
printf("%d\n",iInt2); /*显示结果为22*/
return 0; /*程序结束*/
}
2、 步骤1后面已经有代码的注解。在编译器上面就可以生成.EXE,不明白的在问我
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:95
阅读量:163
阅读量:48
阅读量:134
阅读量:112