zoukankan      html  css  js  c++  java
  • vscode code-runner配置c++编译参数

    解决源码和装入文件杂糅。

    此命令将自动在源码文件夹下生成bin目录,将编译产生的装入模块放入bin目录并执行。

    "code-runner.executorMap":{
      "cpp": "$path=-join ($dir,'\bin');$exist=Test-Path $path;if ($exist -eq $False) {mkdir $path};cd $dir;$outpath=-join ($path,'/$fileNameWithoutExt'); g++ -std=c++11 $fileName -o $outpath;  ;if ($?){./bin/$fileNameWithoutExt}"
    }

    须设置vscode默认shell为powershell

  • 相关阅读:
    3-1
    3-2
    习题二 8
    习题二 3
    习题二 5
    习题二 4
    习题二 6
    实验三-2未完成
    实验三
    心得
  • 原文地址:https://www.cnblogs.com/mooleetzi/p/13023830.html
Copyright © 2011-2022 走看看