---恢复内容开始---

前面已经安装了windows下面的编译器g++和mingw32-make,下面就make做个示例说明

1.文档结构

|--src
       |--comm
               |--comm.cpp(内容如下:)

#include "../include/comm.h"
string trim(string &strIn)
{
    string tmp = " ";  
    strIn.erase(strIn.find_last_not_of(tmp)+1,strIn.size()-strIn.find_last_not_of(tmp));
    strIn.erase(0,strIn.find_first_not_of(tmp));
    return strIn;
}
View Code

相关文章:

  • 2023-01-08
  • 2022-01-12
  • 2021-11-16
  • 2021-07-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-15
猜你喜欢
  • 2021-11-10
  • 2021-12-14
  • 2021-08-12
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案