摘要:
Intel、微软等公司曾经出过一道类似的面试题:#include <iostream.h>4#pragma pack(8)struct example1{short a;long b;};struct example2{char c;example1 struct1;short e;};#pragm 阅读全文
摘要:
引用的本质其实就是const类型的指针(指针指向不能被改变),加上了const修饰的引用我觉得确实可以理解为 const type * const name,即指向的地址是不能改变的,地址所对应的值也是不能改变的。 常指针是指针的值不可改变,指向的内容可变。 第一种 等待完成操作,一定时间未完成跳出 阅读全文