上一页 1 ··· 74 75 76 77 78 79 80 81 82 ··· 115 下一页
摘要: 位运算符C提供了六种位运算运算符;这些运算符可能只允许整型操作数,即char、short、int和long,无论signed或者unsigned。& 按位AND| 按位OR^ 按位异或<< 左移>> 右移~ 求反(一元运算)按位与操作&通常用于掩去某些位,比如n = n & 0177;使得n中除了低7位的各位为0。按位或操作|用于打开某些位:x = x | SET_ON;使得x的某些SET_ON与相对的位变为1。按位异或操作^使得当两个操作数的某位不一样时置该位为1,相同时置0。应该区分位操作符&、|与逻辑操作符&&、|| 阅读全文
posted @ 2013-03-18 14:32 功夫 熊猫 阅读(4963) 评论(0) 推荐(0)
摘要: 泰坦尼克终将沉没,沉没之时,有人无关痛痒,有人迎接新生,唯有科比,将手扶着船舵,直至最后一刻。我不是科比的拥趸,也很少推崇职业体育世界里的所谓情感和忠诚。但在这一幕里,我见到了科比生命里烙刻的紫金颜色。 “湖人是一条进水的船。其他人都能跳船,他们或者可以在夏天离开,或者跟这支球队并没有多少情感。唯有科比,他是这条船的船长,他真正拿湖人当自己的生命,他和湖人一荣俱荣,一损俱损,荣辱与共。无论最终胜负如何,今天这个独臂奋战的科比,真是令人敬佩。评判人的不只是成绩,还有寄托的精神。” 这是一条我在周三解说湖人雷霆之战后发出的微博。24小时之后,被转发超过2万次。我粗略看了看,在一条涉及科比、湖人的. 阅读全文
posted @ 2013-03-17 18:53 功夫 熊猫 阅读(381) 评论(0) 推荐(0)
摘要: C语言数据类型原文:http://zhidao.baidu.com/question/116383335.html?an=0&si=1C语言各种数据类型及其在系统中占的字节和取值范围2009-08-21 09:53C语言包含5个基本数据类型: void, int, float, double, 和 char. (另:C++ 定义了另外两个基本数据类型: bool 和 wchar_t. 一些基本数据类型能够被 signed, unsigned, short, 和 long 修饰所以short,long等等都不算基本数据类型。这是书上说的,所以C++是7种基本数据类型。空值型是一种,但枚举 阅读全文
posted @ 2013-03-17 17:37 功夫 熊猫 阅读(1195) 评论(1) 推荐(0)
摘要: Definition:The #define Directive You can use the #define directive to give a meaningful name to a constant in your program. The two forms of the syntax are: Syntax #define identifier token-stringopt #define identifier[( identifieropt, ... , identifieropt )] token-stringoptUsage:1. 简单的define定义#de... 阅读全文
posted @ 2013-03-15 16:12 功夫 熊猫 阅读(587) 评论(1) 推荐(0)
摘要: Hi dear fellows,I want to setup my network in the following way:1)unknown clients get a dynamic address from range A, with router R1, and DNS1 and DNS2.2)known clients (by specific MAC addresses) get a dynamic address from range B, with router R2, and DNS3 and DNS4.3)known clients (by specific MAC a 阅读全文
posted @ 2013-03-15 16:12 功夫 熊猫 阅读(714) 评论(0) 推荐(0)
摘要: 笔者的dhcp client 一次在不同的dhcp sever之间切换时 (从10.0.2.× 网段到10.0.9.x网段), 抓包如下:其中的第四个包NAK的数据内容如下:0110 00 00 00 00 00 00 63 82 53 63 35 01 06 36 04 0a ......c. Sc5..6..0120 00 09 01 38 1f 72 65 71 75 65 73 74 65 64 20 61 ...8.req uested a0130 64 64 72 65 73 73 20 6e 6f 74 20 61 76 61 69 6c ddress n ot ava 阅读全文
posted @ 2013-03-15 16:11 功夫 熊猫 阅读(568) 评论(2) 推荐(0)
摘要: Below are some examples which will help you to understand packet filtering better. Again, a word of warning, before performing packet filtering, make sure that you do not run it in promiscuous mode and you have permissions from your employer or you run it in your own network, better if you could cr. 阅读全文
posted @ 2013-03-15 16:11 功夫 熊猫 阅读(445) 评论(0) 推荐(0)
摘要: http://linux.die.net/man/5/dhcpd.confNamedhcpd.conf - dhcpd configuration fileDescriptionThe dhcpd.conf file contains configuration information for dhcpd, the Internet Systems Consortium DHCP Server.The dhcpd.conf file is a free-form ASCII text file. It is parsed by the recursive-descent parser buil 阅读全文
posted @ 2013-03-15 16:10 功夫 熊猫 阅读(2060) 评论(0) 推荐(0)
摘要: WIDE-DHCPv6 client configurationThe /etc/config/dhcp6c file controls the WIDE-DHCPv6 client package wide-dhcpv6-client configuration. It defines basic properties and interface settings.SectionsA typical default configuration consists of one dhcp6c section with common settings and one or more interfa 阅读全文
posted @ 2013-03-12 13:53 功夫 熊猫 阅读(2706) 评论(0) 推荐(0)
摘要: http://technet.microsoft.com/en-us/library/cc757291%28v=ws.10%29.aspx#BKMK_54http://technet.microsoft.com/en-us/library/cc740203%28v=ws.10%29.aspx#BKMK_6---------------------------------The netsh interface ipv6 command context contains many commands that are useful for analyzing the current IPv6 con 阅读全文
posted @ 2013-03-12 13:13 功夫 熊猫 阅读(614) 评论(0) 推荐(0)
上一页 1 ··· 74 75 76 77 78 79 80 81 82 ··· 115 下一页