2011年6月13日

Linux 编程初步

摘要: Linux下可用许许多多的语言进行编程包括:现以C 为编程语言。方法一:1)在终端使用$vi hello.c #创建hello.c文件),“#”号后面的表解释2)进入后按 i 键, 进入输入模式,输入如下:#include <stdio.h>#include <stdlib.h>int main(){printf(“Hello World/n”);exit(0);} 3)按 ESC 键,进入中间模式,输入 : ,在最下面一行出现的冒号后面输入wq,回车(保存退出)4)使用gcc编译器 输入;$ gcc -o hello hello.c #将hello.c文件编译生成名为 阅读全文

posted @ 2011-06-13 22:27 FengMichael 阅读(179) 评论(0) 推荐(1)

导航