安装: 1 git clone https://github.com/fmtlib/fmt.git 2. cmake . 3. make && make install #include "fmt/format.h" #include <iostream> int main() { std::string s = fmt::format("{0}is{1}", "abra",12); std::cout << s <<std::endl; return 0; } 编译选项要使用 -std=c++...
安装: 1 git clone https://github.com/fmtlib/fmt.git 2. cmake . 3. make && make install #include "fmt/format.h" #include <iostream> int main() { std::string s = fmt::format("{0}is{1}", "abra",12); std::cout << s <<std::endl; return 0; } 编译选项要使用 -std=c++...