ZOJ1295 Reverse Text
本文最后更新于 1835 天前,其中的信息可能已经有所发展或是发生改变。
// ZOJ1295 Reverse Text.cpp : 定义控制台应用程序的入口点。
//

#include "stdafx.h"

#include<iostream>  
#include<cstring>  
using namespace std;

void print(char a[])
{
	int l;
	l = strlen(a);
	for (int i = l - 1; i >= 0; i--)
		cout << a[i];
	cout << endl;
}
int main()
{
	int n,n1;
	cin >> n;
	cin.ignore();
	char **a = new char*[n];
	for (int i = 0; i < n; i++)
	{
		
		a[i] = new char[80];
		cin.getline(a[i], 80);
		
	}
	n1 = n;
	
	while (n != 0)
	{
		print(a[n1-n]);
		n--;
	}
}
作者:Yuyy
博客:https://yuyy.info
暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇