在cpp所在目录,鼠标右键“在终端打开”

1、生成可执行文件,以hello.cpp为例,生成可执行程序hello

g++ hello.cpp -o hello

2、运行可执行文件

./hello

 

相关文章:

  • 2022-12-23
  • 2021-11-27
  • 2021-12-05
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-04
  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案