注释,常量,

55 阅读1分钟

[划重点]:1.选定一段代码,ctrl+/进行集体注释 2.右键,格式化,可迅速美化代码格式 3.".....%d...."中%d本身是单个量而非运算

4.【1】.单行注释:// 注释内容 【2】多行注释:/内容/ 【3】image.png 【4】整型"%d",19 实型"%f",/省略零/ 字符"%c",'' 字符串"%s","" 【5】模板

#include <stdio.h>
int main(){
    printf("我报的学校的名字是:%s","xxxx");
    printf("\n");
    printf("我高考的总分为:%s","xxx");
    return 0;
}

【6】驶牛牵专属

#include <stdio.h>
int main(){
printf("%d千刚满%f岁",16,18.8);
printf("\n");
printf("洲名%s","爱搞事业");
return 0;
}