题解 1206: 字符串问题

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

筛选

字符串问题-题解(C++代码)

解题思路:直接调用reverse函数,需要头文件algorithm参考代码:```cpp#include#includeusingnamespacestd;intmain(){stringstr;cin>>str;reverse(str.begin(),str.end());cout

字符串问题 (C++代码)

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring> using namespace std; int main() { char a[3……

字符串问题 (Java代码)

摘要:解题思路:注意事项:参考代码:public class 字符串问题 { public static void main(String[] args) { // TODO Auto-gen……

字符串问题-题解(C语言代码)

本题比较简单,大致思路如下:读入字符串,遍历倒序输出。我觉得注意的就是方法的选择,以及相应知识点的运用。第一种方法是最简单的直接倒序输出:```c#include#includeintmain(){intlen,i;chars[256];scanf("%[^\n]",

字符串问题 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){    char str[300];    int i;    while(g……