c语言的第一个程序

Hello world!

1,程序中所用的是英文状态下的输入 2,开头的声明必不可少 3.每行命令以;分号为结束符 4,最后要有return 0.

 

#include <stdio.h> /*编译预处理命令,c所必须*/

int main()
{
    printf("hello world\n");/*打印输出*/
    return 0;
}

 

posted @ 2018-02-09 17:19  pyming  阅读(249)  评论(0编辑  收藏  举报