Write a function to reverse the input string.
发布时间
阅读量:
阅读量
1051: 写一函数,使输入的一个字符串按反序存放
时间限制设定为1秒,内存限制为128MB
提交次数累计达1079次,成功解决案例共计695例
[ 提交][ 状态][ 讨论版]
题目描述
编写一个函数,实现对输入字符串进行逆序存储的操作,并在主函数中完成字符串的输入与逆序后结果的输出。
输入
一行字符
小标题
字符串的逆序形式
样例输入解析
123456abcdef
样例输出
fedcba654321
提示
#include <iostream>
#include <stdio.h>
#include <stdlib.h>//定义杂项函数及内存分配函数
#include <string.h>
using namespace std;
int main()
全部评论 (0)
还没有任何评论哟~
