C++ 请打开控制台(Ctrl-`)并将任何错误或回溯发布到您的问题中。非常感谢MattDMo,我会尝试一下。很抱歉让帖子不完整。运行它的代码是“g++Here.c”。“查找”部分仅用于在您找不到文件时帮助您查找该文件。(在我身上发生过几次) apt-get in

C++ 请打开控制台(Ctrl-`)并将任何错误或回溯发布到您的问题中。非常感谢MattDMo,我会尝试一下。很抱歉让帖子不完整。运行它的代码是“g++Here.c”。“查找”部分仅用于在您找不到文件时帮助您查找该文件。(在我身上发生过几次) apt-get in,c++,ubuntu,sublimetext3,C++,Ubuntu,Sublimetext3,请打开控制台(Ctrl-`)并将任何错误或回溯发布到您的问题中。非常感谢MattDMo,我会尝试一下。很抱歉让帖子不完整。运行它的代码是“g++Here.c”。“查找”部分仅用于在您找不到文件时帮助您查找该文件。(在我身上发生过几次) apt-get install g++ find | grep "part of your filename" ./a.out { "cmd": ["g++ -Wall -Wextra -O2 -pt


请打开控制台(
Ctrl-`
)并将任何错误或回溯发布到您的问题中。非常感谢MattDMo,我会尝试一下。很抱歉让帖子不完整。运行它的代码是“g++Here.c”。“查找”部分仅用于在您找不到文件时帮助您查找该文件。(在我身上发生过几次)
apt-get install g++
find | grep "part of your filename"
./a.out
{
    "cmd": ["g++ -Wall -Wextra -O2 -pthread -H -std=c++17 \"${file}\" -o runfile && ./runfile <input.in> output.out"], 
//above line works fine if input.in and output.out files are present in same directory in which .cpp file is present else add complete address of these files for using them as common input output files in your system.
    "shell":true,
    "working_dir":"$file_path",
    "selector":"source.c,source.c++,source.cpp",
    "variants": [
   { 
       "name": "Variant Run",
       "cmd" : ["gnome-terminal -- bash -c \"g++ $file_name ;echo ------------Output-------------; ./a.out;echo;echo;  echo Press ENTER to continue; read line;exit; exec bash\""
     ],
   }
 ]

}