摘要:
using System;using System.Collections;using System.Collections.Generic;using System.Linq;using System.Text;using System.Text.RegularExpressions;namesp... 阅读全文
摘要:
namespace c编程练习题{ class Program { /// /// 求两个整型变量中的最大值。 /// /// 第一个变量 /// 第二个变量 /// 两个变量中的最大的值 ... 阅读全文
摘要:
string[] s = new string[3] { "我", "是", "好人" }; for (int i = 0; i < s.Length/2; i++) //若字符串个数为奇数,则交换了(s.length-1)/2,若是偶数,则交... 阅读全文
摘要:
using System;using System.Collections;using System.Collections.Generic;using System.Linq;using System.Text;using System.Text.RegularExpressions;namesp... 阅读全文
摘要:
Console.WriteLine("请输入学生人数:"); int n=int.Parse(Console.ReadLine()); ArrayList arr= new ArrayList(); ... 阅读全文
摘要:
string[,] serwei = new string[10, 10] { {"■","■","■","■","■","■","■","■","■","■"}, {"■"," "," "," "," ","■","... 阅读全文
摘要:
namespace c编程练习题{ public enum Seasons //在域名区域声明枚举类型 Seasons.方便团队开发. { 春, 夏, 秋, 冬, } class Program { ... 阅读全文
摘要:
Console.WriteLine("请输入一段文字;"); string str = Console.ReadLine(); int sum =str.Length;//定义一个值变量用来记录汉字的个数。 ... 阅读全文
摘要:
Console.WriteLine("请依次输入十个学生的年龄"); int[] age = new int[10]; int i = 0;//声明数组中的0-9的索引数。 int sum = 0; ... 阅读全文
摘要:
string str = "akdjkaflajfaljfqpjwojhflkjallaajfjadjlajdaffksbvcalihwhkqekq12304010580473639601"; int sum = str.Length; ... 阅读全文