标签:
安装boost:
a) 下载boost库:http://www.boost.org/
b) 安装boost:
c) 验证:
#include "stdafx.h"
#include <iostream>
#include <string>
#include <boost/regex.hpp>
int main()
{
boost::regex pattern("\\w+@\\w+(\\.\\w+)*");
std::string mail("xxx@gmail.com");
if (boost::regex_match(mail, pattern)) {
std::cout << mail << " is a valid mail address!" << std::endl;
}
else {
std::cout << mail << " is not a valid mail address!" << std::endl;
}
system("pause");
}
安装openssl:
安装thrift
Visual Studio / Thrift C++ 环境配置,编译安装
标签:
原文地址:http://www.cnblogs.com/JingJ/p/4409732.html