相关疑难解决方法(0)

Visual Studio代码:从用户输入

目前,我正在尝试用Visual Studio代码编写C/C++程序.为此,我安装了两个扩展:C/C++C++ Intellisense

根据文档,调试工具不适用于Windows.我已经能够使用以下任务构建和运行代码:

{
    "version": "0.1.0",
    "command": "cmd",
    "isShellCommand": true,
    "args": [
        "/C"
    ],
    "tasks": [
        {
            "taskName": "Makefile",
            "suppressTaskName": true,
            // Make this the default build command.
            "isBuildCommand": true,
            // Show the output window only if unrecognized errors occur.
            "showOutput": "always",
            // No args
            "args": [
                "C:/Programs/cygwin/bin/make.exe",
                "all"
            ],
            // Use the standard less compilation problem matcher.
            "problemMatcher": {
                "owner": "cpp",
                "fileLocation": [
                    "relative",
                    "${workspaceRoot}"
                ],
                "pattern": {
                    "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
                    "file": 1,
                    "line": 2,
                    "column": …
Run Code Online (Sandbox Code Playgroud)

c++ visual-studio-code

9
推荐指数
3
解决办法
2万
查看次数

标签 统计

c++ ×1

visual-studio-code ×1