|
|
hai 1 ano | |
|---|---|---|
| base | hai 1 ano | |
| examples | %!s(int64=2) %!d(string=hai) anos | |
| img | hai 1 ano | |
| libc | hai 1 ano | |
| opencv | hai 1 ano | |
| tools | hai 1 ano | |
| .clang-format | hai 1 ano | |
| 01.mysort.cpp | %!s(int64=2) %!d(string=hai) anos | |
| README.md | hai 1 ano | |
| cpp.json | %!s(int64=2) %!d(string=hai) anos | |
| keybindings.json | hai 1 ano | |
| settings.json | hai 1 ano |
C/C++零基础入门 系列教程 不懂英文 从零开始
https://wwcz.lanzout.com/b01urh63a 密码:7q5c
算法动画图解_中文欢乐版.apk 视频右侧的 算法动画图解 程序MSVC2015Mini.7z 视频中 VSCODE 调用的 C/C++ 编译器https://wwm.lanzout.com/b0r9anaqb 密码:1diw
MSVC2022_X64_mini.7z 压缩包解压到任意目录下, 推荐 C:\MSVC2022配置环境变量,添加参考如下
INCLUDE=C:\MSVC2022\include
LIB=C:\MSVC2022\lib
Path=C:\MSVC2022\bin;%PATH%
配置 CodeRunner 修改配置文件 settings.json , 给 cl.exe 添加参数 UTF-8 编码、不显示警告、编译优化、链接库等参数
"cpp": "cd $dir && cl.exe /utf-8 /nologo /w /EHsc /Ox /DNDEBUG /MD $fileName /link rpcrt4.lib msvcrt.lib shell32.lib user32.lib && $dir$fileNameWithoutExt",
"c": "cd $dir && cl.exe /utf-8 /nologo /w /EHsc /Ox /DNDEBUG /MD $fileName /link rpcrt4.lib msvcrt.lib shell32.lib user32.lib && $dir$fileNameWithoutExt"
设置 PowerShell 的默认输出编码为 UTF-8:
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
# OpenCV 官方下载地址:
https://opencv.org/releases/
# 原始文件:
https://github.com/opencv/opencv/releases/download/4.10.0/opencv-4.10.0-windows.exe
# 安装位置: 解压到 MSVC2022 编译器目录
C:\MSVC2022