2016年7月26日
摘要: 290. Word Pattern 290. Word Pattern Total Accepted: 45113 Total Submissions: 148465 Difficulty: Easy Given a pattern and a string str, find if str fol 阅读全文
posted @ 2016-07-26 21:53 人生一世,草木一秋。 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 292. Nim Game 292. Nim Game Total Accepted: 84580 Total Submissions: 157260 Difficulty: Easy You are playing the following Nim Game with your friend: 阅读全文
posted @ 2016-07-26 20:03 人生一世,草木一秋。 阅读(354) 评论(0) 推荐(0) 编辑
摘要: 342. Power of Four 342. Power of Four Total Accepted: 28742 Total Submissions: 81051 Difficulty: Easy Given an integer (signed 32 bits), write a funct 阅读全文
posted @ 2016-07-26 19:27 人生一世,草木一秋。 阅读(833) 评论(0) 推荐(0) 编辑
摘要: 以下分三种情况: 1. 指针 + 整数值 2. 整数 + 整数 3. 指针强制转换为另一个类型后(指针或者是整数) + 整数 测试例子: 1 struct AAA{ int a; char b[4]; }*p;/*sizeof(AAA) == 8*/ 2int *a = 200;//假设该a 在内存 阅读全文
posted @ 2016-07-26 11:18 人生一世,草木一秋。 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 下面这个篇博客讲解很好 http://blog.csdn.net/meegomeego/article/details/9393783 总的来看分三类: 1. 不加 #pragma pack(n)伪指令(n未对齐的字节数目) 2. 加#pragma pack(n) 伪指令 3. __attribut 阅读全文
posted @ 2016-07-26 10:20 人生一世,草木一秋。 阅读(7) 评论(0) 推荐(0) 编辑