发布网友
共1个回答
热心网友
1、使用vim/gvim编辑器书写代码,保存为文件test.cpp
2、在命令行使用g++
-o
Test
test.cpp进行编译,生成Test可执行文件
3、./Test
运行该文件即可