C++程序编译器 运行 g++命令编译后自动生成exe文件
C++ program compiler run the exe file automatically after compiling with g++ command
对于运行ning C++程序我们首先运行"g++ file.cpp"然后我们在CMD中运行"a.exe"
我们可以在一个命令中完成所有操作吗?如果是,如何?
使用&&
:
g++ file.cpp && a.exe
对于运行ning C++程序我们首先运行"g++ file.cpp"然后我们在CMD中运行"a.exe" 我们可以在一个命令中完成所有操作吗?如果是,如何?
使用&&
:
g++ file.cpp && a.exe