---恢复内容开始---
前面已经安装了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; }