摘要: using System;using System.Collections;using System.Collections.Generic;using System.Linq;using System.Text;using System.Text.RegularExpressions;namesp... 阅读全文
posted @ 2015-06-15 10:13 骏码信息 阅读(464) 评论(0) 推荐(0) 编辑
摘要: namespace c编程练习题{ class Program { /// /// 求两个整型变量中的最大值。 /// /// 第一个变量 /// 第二个变量 /// 两个变量中的最大的值 ... 阅读全文
posted @ 2015-06-14 21:04 骏码信息 阅读(560) 评论(0) 推荐(0) 编辑
摘要: string[] s = new string[3] { "我", "是", "好人" }; for (int i = 0; i < s.Length/2; i++) //若字符串个数为奇数,则交换了(s.length-1)/2,若是偶数,则交... 阅读全文
posted @ 2015-06-13 23:36 骏码信息 阅读(1086) 评论(0) 推荐(1) 编辑
摘要: using System;using System.Collections;using System.Collections.Generic;using System.Linq;using System.Text;using System.Text.RegularExpressions;namesp... 阅读全文
posted @ 2015-06-12 21:47 骏码信息 阅读(204) 评论(0) 推荐(0) 编辑
摘要: Console.WriteLine("请输入学生人数:"); int n=int.Parse(Console.ReadLine()); ArrayList arr= new ArrayList(); ... 阅读全文
posted @ 2015-06-12 16:59 骏码信息 阅读(1891) 评论(0) 推荐(1) 编辑
摘要: string[,] serwei = new string[10, 10] { {"■","■","■","■","■","■","■","■","■","■"}, {"■"," "," "," "," ","■","... 阅读全文
posted @ 2015-06-12 14:09 骏码信息 阅读(616) 评论(0) 推荐(0) 编辑
摘要: namespace c编程练习题{ public enum Seasons //在域名区域声明枚举类型 Seasons.方便团队开发. { 春, 夏, 秋, 冬, } class Program { ... 阅读全文
posted @ 2015-06-12 11:16 骏码信息 阅读(1393) 评论(0) 推荐(0) 编辑
摘要: Console.WriteLine("请输入一段文字;"); string str = Console.ReadLine(); int sum =str.Length;//定义一个值变量用来记录汉字的个数。 ... 阅读全文
posted @ 2015-06-09 15:20 骏码信息 阅读(469) 评论(0) 推荐(0) 编辑
摘要: Console.WriteLine("请依次输入十个学生的年龄"); int[] age = new int[10]; int i = 0;//声明数组中的0-9的索引数。 int sum = 0; ... 阅读全文
posted @ 2015-06-09 11:02 骏码信息 阅读(1041) 评论(0) 推荐(0) 编辑
摘要: string str = "akdjkaflajfaljfqpjwojhflkjallaajfjadjlajdaffksbvcalihwhkqekq12304010580473639601"; int sum = str.Length; ... 阅读全文
posted @ 2015-06-08 11:03 骏码信息 阅读(440) 评论(0) 推荐(0) 编辑