using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class MyClass
{
public string Reconvert(string str)
{
char[] h = str.ToCharArray();
char[] c = new char[str.Length];
string s = "";
for (int i = c.Length - 1; i >= 0; i--)
{
s += h[i];
}
return s;
}
}
class Program
{
static void Main(string[] args)
{
MyClass ad = new MyClass();
string y = ad.Reconvert("23tyudiu2kjk45");
Console.WriteLine("23tyudiu2kjk45 字符串反序后:" + y);
Console.ReadLine();
}
}
}
字符串求反序
最新推荐文章于 2022-12-18 13:37:12 发布