摘要: A binary watch has 4 LEDs on the top which represent the hours (0-11), and the 6 LEDs on the bottom represent the minutes (0-59). Each LED represents 阅读全文
posted @ 2016-12-22 16:00 SarahLiu77 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 有些程序要处理二进制位的有序集,每个位可能包含的是0(关)或1(开)的值。位是用来保存一组项或条件的yes/no信息(有时也称标志)的简洁方法。标准库提供了bitset类使得处理位集合更容易一些。要使用bitset类就必须要包含相关的头文件。在本书提供的例子中,假设都使用了std::bitset的u 阅读全文
posted @ 2016-12-22 15:53 SarahLiu77 阅读(209) 评论(0) 推荐(0) 编辑