题解 1093: 字符逆序

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

筛选

字符逆序-题解(C++代码)

摘要:#思路 将一行字符串赋值给一个string,然后使用reverse将string的内容倒置。 #心得 1.使用reverse需要添加#include 2.string字符串可以直接使用str……

字符逆序 (C++代码)

摘要:讲一下递归实现字符串逆序吧,普通字符串逆序太简单,这里给出C++实现代码#include <iostream>void fun(){ char c;  c = std::cin.get();     ……

字符逆序cin.get(str,100);

摘要:#include#includeusing namespace std;int main(){    char str[100];    cin.get(str,100);//gets(str);  ……

1093: 字符逆序

摘要:直接用 reverse 函数将字符串逆序。#include <bits/stdc++.h> using namespace std; int main() {     string s; ……

1093: 字符逆序

摘要:```cpp #include using namespace std; int main(){ char str[100]; gets(str); //用gets输……