题解 1093: 字符逆序

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

字符逆序 (C语言)mirage解题记录

摘要:解题思路:两个字符串数组,字符串1 输入,逆向赋值给 字符串2注意事项:1.数组下标-1;参考代码:#include<stdio.h> #include<string.h> #define N 1……

字符逆序 (C语言代码)

摘要:解题思路:正向输入,逆向输出 注意事项:要注意scanf和gets的区别,前者以空格划分字符串参考代码:#include<iostream>#include<cstring>using namespa……

字符逆序 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>//基本是用栈;栈q放最原始输入的字符串包含空格   栈qhelp是输出的时候将栈q内的单词再调换顺序负负得正的意思struct sqs……

字符逆序 (C++代码)

摘要:解题思路:algorithm头文件注意事项:参考代码:#include <iostream>#include <algorithm>#include <string> using namespace ……

字符逆序 (Java代码)

摘要:解题思路:注意事项:参考代码:package cWeb.buleCup; import java.util.Scanner; public class C1093 { public……

字符逆序 (Java代码)

摘要:解题思路:利用StringBuffer类的reverse()方法,简单方便注意事项:定义一个String类,转化为StringBuffer类,然后使用reverse()反转字符串。参考代码:impor……

字符逆序 (C语言代码)

摘要:解题思路:注意事项:用gets()来接收字符串参考代码:#include <stdio.h>#include<string.h> int main(){ int i,j,len;  char str[……
优质题解

字符逆序 (C语言代码)

摘要:两种方式实现:1) 用scanf输入存放到一个字符数组,然后逆序拷贝到另一个字符数组,然后输出#include <stdio.h> #include <string.h> int main(v……