安装:
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++11  -lfmt 以及指定链接库和头文件位置  

相关文章:

  • 2022-12-23
  • 2021-07-07
  • 2021-08-20
  • 2022-12-23
  • 2022-02-16
  • 2022-03-05
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-14
  • 2022-03-02
  • 2022-12-23
  • 2021-06-22
  • 2021-08-06
  • 2022-12-23
相关资源
相似解决方案