我在 notepad++ 上创建了一个“hello world”程序,也在命令提示符下执行了它。它显示但不是作为 exe。请帮忙,我的路径也设置正确。我只想通过我的命令提示符找到并执行它。
最佳答案
尝试使用以下命令(如果您使用的是 g++):
gcc -Wall -g -o Arithmetic.exe Arithmetic.c
来自 http://www.ntu.edu.sg/home/ehchua/programming/cpp/gcc_make.html
关于在命令提示符下找不到exe,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26788507/