G++运行HelloWorld
摘要:
1.写hello.cpp文件,内容如下:#include <iostream>int main (int argc, char **argv) {printf("hello, world!\n");return 0;}2.编译hello.cpp文件g++ -o hello.o -c hello.cpp3.连接g++ hello.o -o hello.exe4.运行./hello.exe... 阅读全文
posted @ 2010-03-28 22:39 Emily_Fly 阅读(334) 评论(0) 推荐(0) 编辑