正在加载图片...
template<class t> unsigned short bitset<T>: getMember (const Tx)i ∥读取集合元素X,X从0开始 int ad =x/16 int id=x016 unsigned short elem= bit Vector[ad] return((elem >>(15-1d))%2)template<class T> unsigned short bitSet<T>:: getMember (const T x) { //读取集合元素x,x从0开始 int ad = x/16; int id = x%16; unsigned short elem = bitVector[ad]; return ((elem >> (15 - id)) %2); }; 13
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有