一、问题描述
最近做项目需要用到boost库,boost库可以从官网直接下载:
boost官网
最新版本是1.87.0,点Download下载:

选择zip格式的:

把它解压后,将里面的 boost/ 这个目录复制到编译器的include/文件夹下,例如笔者使用的【小熊猫C++】(RedPandaCpp),该目录的路径是
cpp
"C:\Users\lycbu\Desktop\桌面文件\RedPanda-CPP\MinGW64\lib\gcc\x86_64-w64-mingw32\11.2.0\include"
完成后的include/目录:

二、boost库的简单使用
1、引用相关头文件:
cpp
#include "boost/algorithm/string.hpp"