Набор битов вращения C++ [закрыто] ⇐ C++
-
Anonymous
Набор битов вращения C++ [закрыто]
I'm trying to rotate a portion of a bitset in c++11 with
inline void rotateR(std::bitset& b, unsigned m, int lastStep) { b = b > (lastStep-m); } int main() { std::bitset b = 0000000000000000000000000000000000000000000000000000000000000001; for (int i = 0; i< 16; ++i) { rotateR(b, 1, 16); std::cerr
Источник: https://stackoverflow.com/questions/781 ... ate-bitset
I'm trying to rotate a portion of a bitset in c++11 with
inline void rotateR(std::bitset& b, unsigned m, int lastStep) { b = b > (lastStep-m); } int main() { std::bitset b = 0000000000000000000000000000000000000000000000000000000000000001; for (int i = 0; i< 16; ++i) { rotateR(b, 1, 16); std::cerr
Источник: https://stackoverflow.com/questions/781 ... ate-bitset
Мобильная версия