VS2005(VC8)编译、配置Boost.regex
来源:互联网 发布:2013年最火的网络歌曲 编辑:程序博客网 时间:2024/04/30 19:01
1,配置vs2005的控制台编译环境 (参考这里)
2,cd %Boost%/libs/regex/build
cmd>nmake -fvc80.mak
3,添加%Boost%到vs2005的include目录;添加%Boost%/libs/regex/build/vc80到library目录
4,测试
2,cd %Boost%/libs/regex/build
cmd>nmake -fvc80.mak
3,添加%Boost%到vs2005的include目录;添加%Boost%/libs/regex/build/vc80到library目录
4,测试
// 正規表示法測試:信用卡號檢測
#include <boost/regex.hpp>
#include <iostream>
bool validate_card_format(const std::string s)
{
static const boost::regex e("(//d{4}[- ]){3}//d{4}");
return regex_match(s, e);
}
int _tmain(int argc, _TCHAR* argv[])
{
std::cout << (validate_card_format("1111-1111-1111-2222")?"PASS":"Error") ; // PASS
return 0;
}
#include <boost/regex.hpp>
#include <iostream>
bool validate_card_format(const std::string s)
{
static const boost::regex e("(//d{4}[- ]){3}//d{4}");
return regex_match(s, e);
}
int _tmain(int argc, _TCHAR* argv[])
{
std::cout << (validate_card_format("1111-1111-1111-2222")?"PASS":"Error") ; // PASS
return 0;
}
- VS2005(VC8)编译、配置Boost.regex
- VS2005(VC8) 使用 Boost
- VS2005(VC8) 使用 Boost
- VS2005(VC8)编译Xalan-C_1_10_0
- boost编译,vc8和vc9的问题
- vs2005下 使用boost::regex 和 filesystem
- (VC8)配置boost库使用环境
- boost vs2005编译
- boost vs2005编译
- boost vs2005编译
- vs2005配置boost
- vs2005配置boost
- 使用vs2005(vc8)编译log4cpp-0.3.5rc3
- 使用vs2005(vc8)编译log4cpp-0.3.5rc3
- VS2005(VC8)编译Xalan-C_1_10_0(更好的方法)
- VC8编译安装boost 1.39库及测试代码
- VC8编译安装boost 1.39库及测试代码(转载)
- vs2008编译 boost 1_35_0 regex 库
- 用devcpp配置控制台编译的gcc、g++环境
- 基于ARM9的视频采集传输系统
- 使用OTL调用Oracle的存储函数
- 使用devcpp(mingw)编译产生JNI中的dll
- VHDL 根本就不是语言
- VS2005(VC8)编译、配置Boost.regex
- 做好事了
- 幻方
- XML 初级教程(一)
- 一篇逆向压缩的算法
- ASP.NET中动态生成Xml格式文档,并转换为HTML文件
- 个人感情历程
- 《Delphi高手突破》第一章——预览版
- 珍爱生命,远离博客