摘要:
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 阅读全文
摘要:
292. Nim Game 292. Nim Game Total Accepted: 84580 Total Submissions: 157260 Difficulty: Easy You are playing the following Nim Game with your friend: 阅读全文
摘要:
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 阅读全文
摘要:
以下分三种情况: 1. 指针 + 整数值 2. 整数 + 整数 3. 指针强制转换为另一个类型后(指针或者是整数) + 整数 测试例子: 1 struct AAA{ int a; char b[4]; }*p;/*sizeof(AAA) == 8*/ 2int *a = 200;//假设该a 在内存 阅读全文
摘要:
下面这个篇博客讲解很好 http://blog.csdn.net/meegomeego/article/details/9393783 总的来看分三类: 1. 不加 #pragma pack(n)伪指令(n未对齐的字节数目) 2. 加#pragma pack(n) 伪指令 3. __attribut 阅读全文