怎样才能编译c或c++文件,请给出命令行样板
如:要编译test.c
该怎么写命令行?
---------------------------------------------------------------
gcc -o test test.c
运行:
./test
如果是C++:
g++ -o test test.cpp
怎样才能编译c或c++文件,请给出命令行样板
如:要编译test.c
该怎么写命令行?
---------------------------------------------------------------
gcc -o test test.c
运行:
./test
如果是C++:
g++ -o test test.cpp