如何在 Sublime Text 中运行 C++ 语言
运行 C++ 程序的步骤
在 Sublime Text 中运行 C++ 程序需要以下步骤:
详细说明
立即学习“C++免费学习笔记(深入)”;
编译器安装:
构建系统设置:
MinGW:`json
{
"cmd": ["g++", "-std=c++17", "${file}"],
"file_regex": "^(..1):([0-9]+):?([0-9]+)?:? (.)$",
"selector": "source.cpp"
}
Clang:
{ "cmd": ["clang++", "-std=c++17", "${file}"], "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", "selector": "source.cpp"
代码编写:
#includeint main() { std::cout
* **构建和运行:** * **Ctrl + B** / **Cmd + B**(构建)
以上就是c++olor:#f60; text-decoration:underline;' href="https://www.php.cn/zt/15777.html" target="_blank">sublime test怎么运行c++语言的详细内容,更多请关注中国大学网其它相关文章!