2008年9月3日

C# 判断字符串一是否包含字符串二

摘要: 方法一: Console.WriteLine("请输入第一个字符串:"); string str1 = Console.ReadLine(); Console.WriteLine("请输入第二个字符串:"); string str2 = Console.ReadLine(); i... 阅读全文

posted @ 2008-09-03 00:39 VictorShan 阅读(8278) 评论(0) 推荐(0)

C#中的对齐方式

摘要: Console.WriteLine("在宽度为10的空间里靠左对齐:{0,-10}", 99); //显示为:在宽度为10的空间里靠左对齐:99 Console.WriteLine("在宽度为10的空间里靠右对齐:{0,10}", 99); //显示为:在宽度为10的空间里靠右对齐: 99 Console.WriteLine("在宽度为10的空间里靠左对齐:{0,-10}",... 阅读全文

posted @ 2008-09-03 00:17 VictorShan 阅读(3249) 评论(0) 推荐(1)

导航