C基础笔记(Hello world)
第一个程序Hello world
#include<stdio.h> //包含stdio头文件
int main() //主函数
{
printf("Hello world!"); //输出函数
getchar();//等待一个字符
return 0;
}
结果:Hello world!
第一个程序Hello world
#include<stdio.h> //包含stdio头文件
int main() //主函数
{
printf("Hello world!"); //输出函数
getchar();//等待一个字符
return 0;
}
结果:Hello world!