2014年2月21日
摘要: 1 //相当于为现有类型创建一个别名,或称类型别名。 2 //整形等 3 typedef int size; 4 5 6 //字符数组 7 char line[81]; 8 char text[81];//=> 9 10 typedef char Line[81];11 Line text, secondline;12 13 14 //指针15 typedef char * pstr;16 int mystrcmp(pstr p1, pstr p2);//注:不能写成int mystrcmp(const pstr p1, const pstr p3);因const pstr p1解释为c 阅读全文
posted @ 2014-02-21 08:57 Sweet Smile 阅读(1403) 评论(0) 推荐(0) 编辑