#include <iostream>
#include <string>
#include <vector>
#include <bitset>
using std::bitset;
using std::vector;
using std::cin;
using std::endl;
using std::cout;
using std::string;
int main()
{
//建立序列,这种方法似乎蠢了点,但一时也找不到好方法了,原来学过序列的方法,但现在忘了,以后想起来再用吧
vector<int> ivec;
ivec.push_back(1);
ivec.push_back(2);
ivec.push_back(3);
ivec.push_back(5);
ivec.push_back(8);
ivec.push_back(13);
ivec.push_back(21);
//设bitset对像
bitset<32> b;
for(vector<int>::iterator ite=ivec.begin();ite!=ivec.end();++ite)
b.set (*ite);
cout<<"betset: "<<b<<endl;
return 0;
}
/*
92页3.24设相应序列位为1
*/