您的位置:首页 > 科技 > IT业 > dz网站模板_长春网站z制作_快速将网站seo_关键词优化排名用什么软件比较好

dz网站模板_长春网站z制作_快速将网站seo_关键词优化排名用什么软件比较好

2025/3/26 5:02:46 来源:https://blog.csdn.net/weixin_41987016/article/details/146391773  浏览:    关键词:dz网站模板_长春网站z制作_快速将网站seo_关键词优化排名用什么软件比较好
dz网站模板_长春网站z制作_快速将网站seo_关键词优化排名用什么软件比较好

1.安装 mingw64,路径F:/mingw64

2.vscode安装插件 

3. main.cpp

// 写一个hello world程序 c++
#include <iostream>
using namespace std;
int main() {// 返回0,表示程序正常结束std::cout << "Hello, world!" << std::endl;std::cout << "这是我的第一个小小小小的程序!" << std::endl;return 0;
}

4.按下ctrl+shift+p,然后输入>C/C++

生成一个文件

c_cpp_properties.json 

{"configurations": [{"name": "Win32","includePath": ["${workspaceFolder}/**","F:/mingw64/include/**" // 根据实际安装路径修改],"compilerPath": "F:/mingw64/bin/g++.exe","intelliSenseMode": "windows-gcc-x64"}],"version": 4
}

lauch.json

{"version": "0.2.0","configurations": [{"name": "C++ Debug","type": "cppdbg","request": "launch","program": "${fileDirname}/${fileBasenameNoExtension}.exe","args": [],"stopAtEntry": false,"cwd": "${workspaceFolder}","environment": [],"externalConsole": true,"MIMode": "gdb","miDebuggerPath": "gdb.exe","preLaunchTask": "C++ Build"}]
}

settings.json

{"files.associations": {"iostream": "cpp","array": "cpp","atomic": "cpp","*.tcc": "cpp","cctype": "cpp","clocale": "cpp","cmath": "cpp","cstdarg": "cpp","cstddef": "cpp","cstdint": "cpp","cstdio": "cpp","cstdlib": "cpp","cwchar": "cpp","cwctype": "cpp","deque": "cpp","unordered_map": "cpp","vector": "cpp","exception": "cpp","algorithm": "cpp","memory": "cpp","memory_resource": "cpp","optional": "cpp","string": "cpp","string_view": "cpp","system_error": "cpp","tuple": "cpp","type_traits": "cpp","utility": "cpp","fstream": "cpp","initializer_list": "cpp","iosfwd": "cpp","istream": "cpp","limits": "cpp","new": "cpp","ostream": "cpp","sstream": "cpp","stdexcept": "cpp","streambuf": "cpp","typeinfo": "cpp"}
}

tasks.json

{"version": "2.0.0","tasks": [{"label": "C++ Build","type": "shell","command": "g++","args": ["-g","${file}","-o","${fileDirname}/${fileBasenameNoExtension}.exe","-std=c++17","-Wall"],"group": "build"},{"type": "cppbuild","label": "C/C++: g++.exe build active file","command": "F:/mingw64/bin/g++.exe","args": ["-fdiagnostics-color=always","-g","${file}","-o","${fileDirname}\\${fileBasenameNoExtension}.exe"],"options": {"cwd": "F:/mingw64/bin"},"problemMatcher": ["$gcc"],"group": {"kind": "build","isDefault": true},"detail": "Task generated by Debugger."}]
}

5.运行

6.运行出来了第一个hello world!!!

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com