子敬正在创造自己的人生
需求有轻重缓急,功能有可控不可控。 需求有版本有截止(否则会无休无止),功能不可控变为可控。 集中兵力消灭敌人有生力量,集中优势兵力消灭敌人有生力量。
摘要: 强制类型转换分为两种情况:情况1、用malloc分配内存时如:Test2 *test2 = (Test2 *)malloc(sizeof(Test2));2、将一个已知指向某类型的指针转换成其他类型的指针如:typedef struct Test0{ int a ; //int c;} Test0;typedef struct Test1{ Test0 *test0;} Test1;typedef struct Test2{ Test1 test1;//执行通过 int b; int a; //Test1 test1;//执行无法通过} Test2;v... 阅读全文
posted @ 2012-12-03 14:17 silentjesse 阅读(9319) 评论(0) 推荐(0)