求助,帮我运行一下这个程序
visual吧
全部回复
仅看楼主
level 1
Terrymes 楼主
电脑没安软件,急需谢了
2015年03月30日 10点03分 1
level 1
Terrymes 楼主
{
class Program
{
static void Main(string[] args)
{
Console.Write("请输入您所要判断的字符串:");
string s = Console.ReadLine();
char[] c = s.ToCharArray();
int i;
int j = c.Length-1;
for(i = 0; i < j; i++, j--)
{
if (c[i] != c[j])
break;
}
if (i >= j)
{
Console.WriteLine("字符串{0}回文", s);
}
else
{
Console.Write("字符串{0}不回文", s);
}
Console.ReadKey();
}
}
}
2015年03月30日 10点03分 2
level 1
Terrymes 楼主
帮忙把运行结果给我啊
2015年03月30日 10点03分 3
level 1
Terrymes 楼主
大神们
2015年03月30日 10点03分 4
level 1
Terrymes 楼主
人呢。。
2015年03月30日 10点03分 5
level 5
不懂
2015年03月30日 10点03分 6
就用软件新建一个,然后运行两种情况啊
2015年03月30日 10点03分
level 1
Terrymes 楼主
来个人啊
2015年03月30日 11点03分 7
level 10
急吗?不急我晚上看看
2015年04月01日 09点04分 8
我弄好了[吐舌]
2015年04月01日 12点04分
回复 Terrymes :哦,好吧,我刚忙完……
2015年04月01日 13点04分
回复 喜欢LinkPar :[花心][花心]
2015年04月02日 00点04分
1