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

xiaoxiao2021-02-28  50

(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

转载请注明原文地址: https://www.6miu.com/read-2630612.html

最新回复(0)