摘要:
An n-bit gray code sequence is a sequence of 2n integers where: Every integer is in the inclusive range [0, 2n - 1], The first integer is 0, An intege 阅读全文
posted @ 2015-03-05 13:52
Grandyang
阅读(20391)
评论(3)
推荐(4)
摘要:
以下转换代码摘自维基百科 Wikipedia:/* The purpose of this function is to convert an unsigned binary number to reflected binary Gray code. Th... 阅读全文
posted @ 2015-03-05 13:40
Grandyang
阅读(7022)
评论(0)
推荐(2)
摘要:
C++中的stringstream是专门用来处理字符串流的,可以按顺序将string或int都拼接起来,而不用把int转换为string格式,使用方法如下:#include #include #include stringstream strstream;std::string s;std::str... 阅读全文
posted @ 2015-03-05 10:22
Grandyang
阅读(1097)
评论(0)
推荐(0)

浙公网安备 33010602011771号