回复:正在学C语言(Brian的第二版),OS是Redhat 9

来源: 2009-09-12 13:33:04 [旧帖] [给我悄悄话] 本文已被阅读:

Emacs是一个编辑程序(editor),跟C语言没多大关系。
(1).写程序
cat hello.c
main(){
printf("Hello, world!\\n");
}
EOF
(2).编译
gcc -o hello hello.c
(3).运行程序
./hello