摘要: struct student { int age; char *name; }; struct student one ={23,"zefeng"}; struct student two = {55,"fengzi"}; two.age=99; struct student all[2]={one 阅读全文
posted @ 2016-03-10 16:41 谢小锋 阅读(150) 评论(0) 推荐(0)
摘要: a的b次方 int pow(int a,int b){ if(b<0)return 1; return pow(a,b-1)*a;} 阅读全文
posted @ 2016-03-10 14:35 谢小锋 阅读(104) 评论(0) 推荐(0)
摘要: //extern外部函数:定义的函数能被本文件访问和其他文件访问,默认情况下所有函数都是外部函数1>不允许同名 2>默认都是所有函数都是外部 //static内部函数:定义的函数只能被本文件访问,其他文件不能访问 1>允许同名 extern void test(){ printf("外部函数,默认情 阅读全文
posted @ 2016-03-10 14:02 谢小锋 阅读(167) 评论(0) 推荐(0)