C++ VisualStudio代码。启动cpp应用程序时出现问题

C++ VisualStudio代码。启动cpp应用程序时出现问题,c++,C++,所以我想开始我的程序,但它不起作用。它是一个cpp文件,im使用C/C++g++.exe编译器。我也在任务中写道。jason--> 但它不起作用。它显示了这个错误: In Zeile:1 Zeichen:1 + ./main.exe + ~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (./main.exe:String) [], CommandNotFoundException + FullyQualifiedError

所以我想开始我的程序,但它不起作用。它是一个cpp文件,im使用C/C++g++.exe编译器。我也在任务中写道。jason-->

但它不起作用。它显示了这个错误:

In Zeile:1 Zeichen:1
+ ./main.exe
+ ~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (./main.exe:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
 
PS C:\Users\fabia\Documents\Uni\2 Semester\PAD\Imageneu> 

提前感谢您的帮助

,这意味着main.exe不在当前文件夹中。您可以在windows文件资源管理器中验证这一点。请确保关闭隐藏已知类型扩展名的选项,以便windows不会对您隐藏.exe部分。非常感谢!
In Zeile:1 Zeichen:1
+ ./main.exe
+ ~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (./main.exe:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
 
PS C:\Users\fabia\Documents\Uni\2 Semester\PAD\Imageneu>