linxu编程入门问题

怎样才能编译c或c++文件,请给出命令行样板
如:要编译test.c
该怎么写命令行?

---------------------------------------------------------------

gcc -o test test.c
运行:
./test
如果是C++:
g++ -o test test.cpp

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus