第一个程序
Posted zhangqq02
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了第一个程序相关的知识,希望对你有一定的参考价值。
zhangqq
2020,5,31
悦来
浙大MOOCC《语言程序设计CAP》,翁恺
Hello World!
#include <stdio.h>
int main()
{
printf("Hello World\n");
return 0;
}
//每一行必须有分号,分号可以空格和换行
做点计算
#include <stdio.h>
int main()
{
printf("12+34=%d\n", 12+34);//%d表示后面有个整数要输出在这个位置上
return 0;
}
输出:12+34=46
以上是关于第一个程序的主要内容,如果未能解决你的问题,请参考以下文章