码迷,mamicode.com
首页 >  
搜索关键字:bit operation    ( 13261个结果
二叉树类
上学期数据结构课上写的一个二叉树类,贴出来,写得不是太好,欢迎高手指点。 struct BiNode//定义节点类型 { char data; BiNode *lchild; BiNode *rchild; }; class BiTree { private: BiNode *root; public: BiTree() { root=NULL; } ~BiT...
分类:其他好文   时间:2014-06-20 11:19:10    阅读次数:193
连接REDIS
101上重新连接103并获取user.1.name的值[root@linuxidc001 ~]# redis-cli -h 192.168.1.103 -p 6379 redis 192.168.1.103:6379> get user.1.name (error) ERR operation .....
分类:其他好文   时间:2014-06-11 21:59:58    阅读次数:255
算术类型&确定编译环境的位数
算术类型:整型(integral type)char : 一个机器字节(1BYTE = 8BIT)bool: 1 BIT整型: int: 与编译环境相关(不是机器),32位的编辑环境则长度为32BIT,故可以使用sizeof(int)来得到编译器环境的位数(返回的是字节长度)short/long/....
分类:其他好文   时间:2014-06-11 11:20:39    阅读次数:175
SDRAM中数据掩码的作用
DQM就是掩码控制位.在sdram中,每个DQM控制8bit Data在读操作的时候没什么大的影响,比如你读32位的sdram module, 但你只要其中低8bit的数据,没有关系,只要读出32bit数据,再在软件里将高24位bit和0"与"就可以了,有没有DQM关系不大.但在执行写操作时,如.....
分类:其他好文   时间:2014-06-11 09:02:20    阅读次数:289
C++ 异步IO (一) 阻塞式HTTP客户端
An IO call issynchronousif, when you call it, it does not return until the operation is completed, or until enough time has passed that your network s...
分类:编程语言   时间:2014-06-10 10:07:56    阅读次数:273
C++ 异步 IO(三) 异步IO
The oldest solution that people still use for this problem is select(). The select() call takes three sets of fds (implemented as bit arrays): one for...
分类:编程语言   时间:2014-06-10 08:26:42    阅读次数:325
leetcode--Gray Code
The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integernrepresenting the total number...
分类:其他好文   时间:2014-06-10 00:01:38    阅读次数:392
ubuntu14.04 64位系统如何运行xampp集成环境
zzs@ubuntu:~$ sudo /opt/lampp/lampp startapache[sudo] password for zzs:XAMPP is currently only availably as 32 bit application. Please use a 32 bit co...
分类:其他好文   时间:2014-06-08 23:04:45    阅读次数:288
Linux -- Ubuntu搭建java开发环境
Steps1Check to see if your Ubuntu Linux operating system architecture is 32-bit or 64-bit, open up a terminal and run the following command below.Type...
分类:编程语言   时间:2014-06-08 19:51:49    阅读次数:328
(华为)按照指定规则对输入的字符串进行处理
问题详细描述:将输入的两个字符串合并。对合并后的字符串进行排序,要求为:下标为奇数的字符和下标为偶数的字符分别从小到大排序。这里的下标意思是字符在字符串中的位置。 对排训后的字符串进行操作,如果字符为‘0’——‘9’或者‘A’——‘F’或者‘a’——‘f’,则对他们所代表的16进制的数进行BIT倒序...
分类:其他好文   时间:2014-06-08 19:10:55    阅读次数:261
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!