ubuntu C++的编写,调试,运行全过程

(1)在你特定的文件下,建立C++文件,命令:touch test_wenjian.cpp(C++后缀)

(2)编写C++程序,命令:gedit test_wenjian.cpp

(3)编译、调试C++程序,命令:g++ test_wenjian.cpp -o test

(4)运行C++程序:命令:./test_wenjian


参考博客:https://blog.csdn.net/lindamtd/article/details/69466866

猜你喜欢

转载自blog.csdn.net/c_daofeng/article/details/80630932