摘要: def f1(a,b,c=0,*args,**kw): print('a=',a,'b=',b,'c=',c,'args=',args,'kw=',kw) def f2 (a,b,c=0,*,d,**kw): print('a=',a,"b=",b,'c=',c,d,'kw=',kw) f1("zs","hsdf",c=12) a= zs b= hsdf c= 12 a... 阅读全文
posted @ 2018-12-03 22:07 V5八旗 阅读(249) 评论(0) 推荐(0) 编辑
摘要: #include #include #include typedef enum {false=0,true=1}bool; bool str_in(char **); void str_sort (const char *[],int ); void swap(void **p1,void **p2); void str_out (char *[],int ); const size_... 阅读全文
posted @ 2016-06-18 13:23 V5八旗 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 不等价于下面这个,尽管两个输出一样 详情见下面这个例子 阅读全文
posted @ 2016-06-18 10:30 V5八旗 阅读(210) 评论(0) 推荐(0) 编辑
摘要: #include #include typedef enum {false=0,true=1}bool; #include #define BUFFER_LEN 100 #define NUM_P 5 char buffer[BUFFER_LEN]; char *pS[NUM_P]={NULL}; char *pTemp =NULL; int i=0; bool sorted=f... 阅读全文
posted @ 2016-06-16 13:46 V5八旗 阅读(1077) 评论(0) 推荐(0) 编辑
摘要: #include #include #include const size_t BUFFER_LEN =128; const size_t NUM_P =3; char buffer[128]; char *pS[3]={NULL}; char *pbuffer =buffer ; int i; int main() { printf("\n You can enter... 阅读全文
posted @ 2016-06-15 20:04 V5八旗 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 为啥老是输出空指针, http://blog.csdn.net/phunxm/article/details/5081159 教训,1:用谷歌,坚决不用百度2,抄写有错误时候,先检查清楚有没有抄错,一点不同就可能错,C语言一点也不能含糊,多加个啥都错3看不懂时候要一步一步写好注释,只有这样才容易理解 阅读全文
posted @ 2016-06-14 12:37 V5八旗 阅读(149) 评论(0) 推荐(0) 编辑
摘要: #include #include int main() { char str1[]="abcdefghijklmnopqretuvwxyz"; char str2[]="iiiii"; char str3[]="abcdefghijklmnopqretuvwxyz"; char str4[]="oooooooo"; ... 阅读全文
posted @ 2016-06-13 17:09 V5八旗 阅读(158) 评论(0) 推荐(0) 编辑
摘要: #define __STDC_WANT_LIB_EXTl__ 1 #include #include typedef enum {false=0,true=1}bool; unsigned long long *pPrimes =NULL; unsigned long long limit =0LL; bool found =false; int count=0; int i; si... 阅读全文
posted @ 2016-06-13 16:00 V5八旗 阅读(237) 评论(0) 推荐(0) 编辑
摘要: #define __STDC_WANT_LIB_EXTl__ 1 #include #include typedef enum {false=0,true=1}bool;/*#define bool int#define true 1#define false 0和上述一致均是为了声明bool的头文件,代替了stdbool.h*/ int main(void) { unsigned... 阅读全文
posted @ 2016-06-13 13:48 V5八旗 阅读(145) 评论(0) 推荐(0) 编辑
摘要: #include #define N 5 int main(void) { int i; int tensu[N]; int max ,min ; puts ("学生分数输入"); for(i=0;imax) max=tensu[i]; if(tensu[i]>%d",max); printf("min>>%... 阅读全文
posted @ 2016-06-10 23:17 V5八旗 阅读(82) 评论(0) 推荐(0) 编辑