
c
LRJ1207
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
字符串替换空格
字符串替换空格: 请实现一个函数,把字符数组中的每个空格替换成“%20”。 例如输入“we are happy.”,则输出“we%20are%20happy.”。#include <stdio.h> #include <assert.h> #include <windows.h> voidmy_replace(char *arr, int cap) { assert(arr);原创 2016-11-04 19:49:00 · 343 阅读 · 0 评论 -
逆序打印字符串
有一个字符数组的内容为:”student a am i”,请你将数组的内容改为”i am a student”. 要求: 不能使用库函数。只能开辟有限个空间(空间个数和字符串的长度无关)。 #include <stdio.h> #include <assert.h> #include <windows.h> voidstr_switch(char *sta...原创 2016-11-04 19:45:36 · 486 阅读 · 0 评论