小编XPM*_*osh的帖子

在 VS Code 终端(Windows Powershell)中编译时遇到问题

当我右键单击“运行代码”并在我的用户设置中在终端中运行时,我收到这些错误。

At line:1 char:63
+ ... "c:\Users\Josh\Documents\Programming\Learning to Program\" && g++ Exe ...
+                                                                ~~
The token '&&' is not a valid statement separator in this version.
At line:1 char:99
+ ... \Learning to Program\" && g++ Exercise36.cpp -o Exercise36 && "c:\Use ...
+                                                                ~~
The token '&&' is not a valid statement separator in this version.
At line:1 char:102
+ ... ercise36 && "c:\Users\Josh\Documents\Programming\Learning to Program\ ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expressions are only allowed as the first element of a …
Run Code Online (Sandbox Code Playgroud)

c++ powershell g++ visual-studio-code

7
推荐指数
3
解决办法
1万
查看次数

标签 统计

c++ ×1

g++ ×1

powershell ×1

visual-studio-code ×1