![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C-基础
yokiden
刚下云的小菇凉一枚
展开
-
C语言 写函数实现把一个字符串倒序
**原谅我写这么简单的程序都还存在问题。。。表示我还不太会debug。。 还是先展示错误代码,看看哪些地方存在问题——** 错误代码:#include"string.h" #include<stdio.h> #include<stdlib.h> int main() { char*src="hello,world"; char* dest=NULL; int len=st原创 2015-03-22 17:39:56 · 7413 阅读 · 1 评论 -
C语言写函数实现接收n个字符串,将以某个字符为开头的字符串打印出来。
**C语言写函数实现接收n(这里定义3个)个字符串,将以某个字符(这里定义为‘b’)开头的字符串打印出来。PS:假设用户按要求输入错误代码: #include<stdio.h> #define MAX 10 #define STRLEN 5 //没有包含结尾符 int main(int argc, char* argv[]) { char buf[MAX][STRLEN];原创 2015-03-22 15:48:53 · 2804 阅读 · 0 评论