学贵有恒

方有所成

导航

2020年3月12日

C语言实现字符串逆序输出

摘要: //方法一, 思路:通过将str数组的第1个字符和第n个字符交换位置,第二个和第n-1个交换…实现该功能 #include <stdio.h> #include <stdlib.h>#include <string.h>void Reverse(char str[]);int main(){ cha 阅读全文

posted @ 2020-03-12 13:29 CarryBricks 阅读(2989) 评论(0) 推荐(1) 编辑