Visual C++ 2008 Feature Pack发布,可以在VS中直接使用tr1了
来源:互联网 发布:知乎搜索 编辑:程序博客网 时间:2024/05/21 11:22
- Smart pointers
- Regular expression parsing
- New containers (tuple, array, unordered set, etc)
- Sophisticated random number generators
- Polymorphic function wrappers
- Type traits
- And more!
#include <regex>
#include <iostream>
typedef std::tr1::basic_regex<char> Myregex;
typedef std::tr1::match_results<const char *> Mymr;
int main()
{
const char *first = "abc";
const char *last = first + strlen(first);
Mymr mr;
Myregex rx("abc");
std::tr1::regex_constants::match_flag_type fl =
std::tr1::regex_constants::match_default;
std::cout << "match(f, f+1, /"abc/") == " << std::boolalpha
<< regex_match(first, first + 1, rx, fl) << std::endl;
std::cout << "match(f, l, /"abc/") == " << std::boolalpha
<< regex_match(first, last, mr, rx) << std::endl;
std::cout << " matched: /"" << mr.str() << "/"" << std::endl;
std::cout << "match(/"a/", /"abc/") == " << std::boolalpha
<< regex_match("a", rx) << std::endl;
std::cout << "match(/"abc/", /"abc/") == " << std::boolalpha
<< regex_match("abc", mr, rx) << std::endl;
std::cout << " matched: /"" << mr.str() << "/"" << std::endl;
std::cout << "match(string, /"abc/") == " << std::boolalpha
<< regex_match(std::string("a"), rx) << std::endl;
std::string str("abc");
std::tr1::match_results<std::string::const_iterator> mr2;
std::cout << "match(string, /"abc/") == " << std::boolalpha
<< regex_match(str, mr2, rx) << std::endl;
std::cout << " matched: /"" << mr2.str() << "/"" << std::endl;
return (0);
}
- Visual C++ 2008 Feature Pack发布,可以在VS中直接使用tr1了
- VS 2008 Feature Pack使用
- 解决Visual C++ 2008 Feature Pack Release安装失败的方法 —— 在VS2008简体中文版上安装TR1
- 解决Visual C++ 2008 Feature Pack Release安装失败的方法 —— 在VS2008简体中文版上安装TR1
- 解决Visual C++ 2008 Feature Pack Release安装失败的方法 —— 在VS2008简体中文版上安装TR1
- vc2008中MFC重大变革-Visual C++ 2008 Feature Pack Beta 发布
- Visual C++ 2008 Feature Pack
- Visual C++ 2008 Feature Pack Release
- Visual C++ 2008 Feature Pack 示例截图
- Visual C++ 2008 Feature Pack 开发包
- MFC Feature Pack发布
- Visual Studio 2008 Service Pack 1 - BETA发布了
- VS Feature Pack学习之使用CMFCMenuBar自定义菜单栏
- VS Feature Pack学习之使用CMFCMenuBar自定义菜单栏
- VS Feature Pack学习之使用CMFCMenuBar自定义菜单栏
- vc9 Feature Pack Beta tr1 的一些问题
- MFC Feature Pack for Visual C++ 2008的BUG之一
- MFC Feature Pack for Visual C++ 2008的BUG之一
- VM虚拟机复制后,MAC地址冲突问题
- 让程序 只能运行一次
- C++类对应的内存结构
- WAS 6与Websphere MQ6的整合
- 中国采用陪审团制度?
- Visual C++ 2008 Feature Pack发布,可以在VS中直接使用tr1了
- Log4cxx
- 关于oracle os认证和口令文件认证的简要解析(转自网易BLOG)
- 正则表达式符号集
- Crystal Reports CRS方式Web开发
- 归并排序
- Ubuntu 8.04 LTS (Hardy Heron) Alpha 3 已经发布
- ORACLE写一函数,准确地判断字段是否含有汉字或者提取汉字等
- birt报表官方视频教程11部分全部发完了,大家快下啊!