2013年1月15日

位移运算符"<<"与算术运算符"+"的优先级问题

摘要: 一个优先级问题查了一个上午,主要是位移运算符"<<"与算术运算符"+"搞混了 #include <iostream> #include <vector> #include <string> //#include <time.h> #include <ctime> using nam... 阅读全文

posted @ 2013-01-15 15:18 Orz.. 阅读(563) 评论(0) 推荐(0)

C语言运算符优先级 详细列表

摘要: http://www.slyar.com/blog/c-operator-priority.html文章作者:姜南(Slyar)文章来源:Slyar Home (www.slyar.com) 转载请注明,谢谢合作。恩,问这个问题的人太多了,懒得继续回答,直接贴上来自己看。。。优先级运算符名称或含义使用形式结合方向说明1[]数组下标数组名[常量表达式]左到右()圆括号(表达式)/函数名(形参表).成员选择(对象)对象.成员名->成员选择(指针)对象指针->成员名2-负号运算符-表达式右到左单目运算符(类型)强制类型转换(数据类型)表达式++自增运算符++变量名/变量名++单目运算符- 阅读全文

posted @ 2013-01-15 15:10 Orz.. 阅读(132) 评论(0) 推荐(0)

IP Alias - linux中单网卡多IP

摘要: 最近由于测试的需要,在一台linux 机器下配置单网卡多个IP,脚本如下#!/bin/sh# ip_alias.sh#author.....#20130110#for addint or delete 1,000 net-card alias#from 10.3.231.1~200#from 10.3.232.1~200#from 10.3.233.1~200#from 10.3.234.1~200#from 10.3.235.1~200#10.3.231.1 168027905 #10.3.231.200 168028104#10.3.232.1 ... 阅读全文

posted @ 2013-01-15 10:02 Orz.. 阅读(815) 评论(0) 推荐(0)

导航