一个C语言程序

hello.c 代码

#include  <stdio.h>

#include <stdlib.h>

int main()

{

   printf ("hello,my world!");

   exit(0);

}

编译,运行

$gcc -o hello hello.c

$./hello

hello,my world!

$

 

posted @ 2017-07-16 10:11  夏天的西瓜君  阅读(243)  评论(0编辑  收藏  举报