今天晚上回到小区门口,买了点冬枣,要结账的时候想起来,钥匙没带,落公司了! TNND,没办法再回趟公司,拿了钥匙,来回一个小时,汗~ 条款10:令operator=返回一个reference to *this 即赋值操作符返回引用。 原型 Object& operator=(const Object ...
分类:
其他好文 时间:
2016-09-27 00:30:03
阅读次数:
128
question: Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -. my wrong answer 错误点: 显示memory error 应该是运行较大数 ...
分类:
其他好文 时间:
2016-09-26 20:13:18
阅读次数:
112
宏中的#的功能是将其后面的宏参数进行字符串化操作(Stringizing operator),简单说就是在它引用的宏变量的左右各加上一个双引号。 如定义好#define STRING(x) #x之后,下面二条语句就等价。 char *pChar = "hello"; char *pChar = ST ...
分类:
编程语言 时间:
2016-09-24 18:54:36
阅读次数:
168
最近又把《大型网站技术架构》看了一遍.而中间读了一本《计算机操作系统》的教材后,感觉对大型网站的技术架构有更深的了解。在此结合对这两本书的理解做一些笔记 传统的OS(Operator System)有四个基本的功能: a) 进程控制 b) 进程同步 c) 进程通信 d) 调度 a) 内存分配 b) ...
分类:
Web程序 时间:
2016-09-21 09:06:06
阅读次数:
166
Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -. Example:Given a = 1 and b = 2, return 3. 题目要求:计算两个整型的和 ...
分类:
其他好文 时间:
2016-09-21 00:07:10
阅读次数:
105
1, Javascript only has one type of numberic data, named "number". You can see this reflected in the behavior of the typeof operator, which classifies ...
分类:
Web程序 时间:
2016-09-19 21:00:12
阅读次数:
247
紫书365 题目大意:给你n个全都是bug的东西,然后每次可以修复,给你修复前后的状态,问最后如果能把bug全都修复,最少需要多少时间。 思路:从最初状态开始,然后枚举bug即可。 表示priority里面的bool operator和单纯的sort的定义的大小于号是不一样的啊,如果你想用sort来 ...
分类:
其他好文 时间:
2016-09-17 11:53:11
阅读次数:
194
Sightseeing Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 8707 Accepted: 3056 Description Tour operator Your Personal Holiday organises g ...
分类:
其他好文 时间:
2016-09-14 18:54:34
阅读次数:
201
Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -. Example:Given a = 1 and b = 2, return 3. 思路:xor相加存无car ...
分类:
其他好文 时间:
2016-09-13 13:06:12
阅读次数:
254
Ubuntu16.04 执行行脚本出错 在使用sh 执行脚本 出错标志 : 4: [: y: unexpected operator 原因:sh是连接到dash的,又因为dash跟bash的不兼容所以出错了. 解决办法:可以使用 “.” 的方式执行脚本 ...
分类:
系统相关 时间:
2016-09-11 22:49:47
阅读次数:
179