![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PTA习题
无刺咸鱼
此人很懒,让你以为什么都没写
展开
-
习题8_6与习题9_2
void delchar( char *str, char c ) { char* p;p=str;char* tool; while(p!='\0') { if(c==*p) { tool=p; while(tool!='\0') { *tool=*(tool+1); tool++; } } else p++; } }原创 2020-12-29 16:14:08 · 93 阅读 · 0 评论 -
习题8-4 报数
报数游戏的规则 以下是我的解决代码: #include <stdio.h> #define MAXN 20 void CountOff( int n, int m, int out[] ); int main() { int out[MAXN], n, m; int i; scanf("%d %d", &n, &m); CountOff( n, m, out ); for ( i = 0; i < n; i++ )原创 2020-12-29 11:56:45 · 142 阅读 · 1 评论