static void Main(string[] args) { while (true) { try { Console.Write("请输入一个数:"); int n = Convert.ToInt32(Console.ReadLine()); int i = 1; int s = 0, z....
分类:
其他好文 时间:
2015-04-02 20:51:02
阅读次数:
152
static void Main(string[] args) { int n = 0; for (int x = 1; x*15 <=200; x++) {可能性*可能性*可能性=全部可能性,从中找出符合条件的就OK(if); for (int y = 1; y*3 <=200; y++) { f...
分类:
其他好文 时间:
2015-04-02 20:50:38
阅读次数:
102
static void Main(string[] args) { string a; Console.WriteLine("请输入您的邮箱地址:"); a = Console.ReadLine(); if (a.Contains("@")&&a.Contains(".com"))//这句话的意思是...
分类:
其他好文 时间:
2015-04-02 20:48:52
阅读次数:
143
static void Main(string[] args) { DateTime dt = DateTime.Now; Console.WriteLine(dt); DateTime nz = Convert.ToDateTime("2015-4-2 17:00"); //将nz的时间转换为电....
分类:
其他好文 时间:
2015-04-02 20:47:09
阅读次数:
144
static void Main(string[] args) { while (true) { /* string x; Console.WriteLine("请随便输入:"); x= Console.ReadLine(); x=x.Trim();//前边的空格和后面的空格都去掉 Consol.....
分类:
其他好文 时间:
2015-04-02 20:47:09
阅读次数:
115
static void Main(string[] args) { string s = ""; s = "★\n★★\n★★★\n★★★★\n★★★★★"; Console.WriteLine(s); Console.ReadLine(); }
分类:
其他好文 时间:
2015-04-02 20:42:54
阅读次数:
120
Big StringTime Limit:1000MSMemory Limit:131072KTotal Submissions:5936Accepted:1397DescriptionYou are given a string and supposed to do some string man...
分类:
其他好文 时间:
2015-04-02 20:41:53
阅读次数:
174
java反射机制:涉及的对象:Class, Object, 函数:Class类:【forName(String className):static;getClass():public】,Object类:【getClass():public】。ClassClass也是一个对象,但是你不能通过构造函.....
分类:
编程语言 时间:
2015-04-02 20:41:15
阅读次数:
135
static void Main(string[] args) { while (true) { int n = 0; for (int g = 1; g*2 <=100; g++) { for (int m = 1; m*1 <=100; m++) { for (int x = 1; x*0.5....
分类:
其他好文 时间:
2015-04-02 20:38:00
阅读次数:
111
static void Main(string[] args) { while (true) { /*★ ★★ //最重要的就是找规律 i--行 ★★★ j--列 ★★★★ ★★★★★ */ /*string s = "★"; int n; Console.WriteLine("请输入一个数:...
分类:
其他好文 时间:
2015-04-02 20:37:14
阅读次数:
113