- 博客(4)
- 收藏
- 关注
原创 第五次实验指针与字符串(周一78节)
1-1void delchar( char *str, char c ){ int new=0; int i; for(i=0;*(str+i)!='\0';i++); for(int j=0;j<=i;j++){ if(*(str+j)!=c){ *(str+new)=*(str+j); new++; } }}1-2 char *str_cat( char *s, char *t )
2022-05-23 15:41:43
71
原创 第四次实验指针与一维数组(周一78节)
第一题void sum_diff( float op1, float op2, float *psum, float *pdiff ){ *psum=op1+op2; *pdiff=op1-op2;}第二题void findmax( int *px, int *py, int *pmax ){ if(*px>*py) *pmax=*px; else *pmax=*py; }第三题void
2022-05-16 15:49:05
71
原创 第三次实验字符串(周一78节)
第一题#include <stdio.h>int main()第二题#include <stdio.h>int main()第三题#include <stdio.h>int main()第四题#include <stdio.h>int main()第五题#include <stdio.h>int main()
2022-05-09 15:41:30
83
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人