关于bitset在vc6.0中的使用.
mylzw 2006-01-29 07:48:00 一个经典的用法:
#include <iostream>
#include <string>
#include <bitset>
using namespace std;
void test1() {
bitset<8> b(3);
string s=b.template to_string<char,
std::char_traits<char>,
std::allocator<char> >();
cout<<s<<endl;
}
//~
在vc6中居然无法编译通过~ 郁闷了.