2020年3月29日
摘要: char *strcpy(char *s1,const char *s2){ char *p=s1; while(*p++=*s2++); return s1; } size_t strlen(const char *s){ size_t n=0; while(*s++)n++; return n; 阅读全文
posted @ 2020-03-29 21:19 ~明月几时有 阅读(153) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<time.h> #include<stdlib.h> int main(void){ int a[100],n,i; scanf("%d",&n); srand((unsigned)time(NULL)); //1. // int *p=a; / 阅读全文
posted @ 2020-03-29 21:14 ~明月几时有 阅读(600) 评论(0) 推荐(0)
摘要: #include<stdio.h> int main(void){ int a[3][4]={0,1,2,3,4,5,6,7,8,9,10,11}; int (*p)[4]; for(p=a;p<a+3;p++){ (*p)[2]=-1; } p=a; int i,j; for(i=0;i<3;i+ 阅读全文
posted @ 2020-03-29 21:07 ~明月几时有 阅读(3687) 评论(0) 推荐(0)