|
发表于 2006-3-26 20:29:46
|
显示全部楼层
As a trodition, let's start with Hello world!
1. Edit a hello.c with VIM or Emacs
/*
* hello.c
*/
#include <stdio.h>
int main(void)
{
printf("Hello world!\n");
return 0;
}
2. compile & link
root@linux> gcc hello.c -o hello
3. run it
root@linux>./hello
hello world! |
|