摘要: using System;class Score{ public void score(int sequence_number) { int sum=0; int[] student=new int [5]; for(int i=0;i<=4;i++) { Console.WriteLine ("请 阅读全文
posted @ 2018-04-07 14:50 v123ve 阅读(110) 评论(0) 推荐(0)
摘要: using System;using System.Collections ;class ArraySort{ static void Main() { ArrayList myArrayList=new ArrayList (); Console.WriteLine ("你想排几个数的序:"); 阅读全文
posted @ 2018-04-07 14:48 v123ve 阅读(148) 评论(0) 推荐(0)
摘要: using System;class fangcheng{ public static void Main() { //声名变量 double a; double b; double c; double d; double e; double f; double g; double h; doubl 阅读全文
posted @ 2018-04-07 14:47 v123ve 阅读(162) 评论(0) 推荐(0)
摘要: using System;using System.Diagnostics;class close_special_exe{ static void Main() { Process[] myProcess; myProcess=Process.GetProcessesByName ("Notepa 阅读全文
posted @ 2018-04-07 14:45 v123ve 阅读(117) 评论(0) 推荐(0)
摘要: int n = Convert.ToInt32(Console.ReadLine()); int m = n, x = 0; while (m>0) { x = x * 10 + m % 10; m /= 10; } Console.WriteLine(x); 阅读全文
posted @ 2018-04-07 14:43 v123ve 阅读(195) 评论(0) 推荐(0)
摘要: using System;public class guess_number{ public static void Main() { int i_random=new Random ().Next (100); int i_guess=0; int i_count=0; Console.Write 阅读全文
posted @ 2018-04-07 14:40 v123ve 阅读(179) 评论(0) 推荐(0)
摘要: using System;class ChooseSubject{ static void Main() { int i; string str; Console.WriteLine ("Please choose your favorite subjects:-1 is quit."); Cons 阅读全文
posted @ 2018-04-07 14:38 v123ve 阅读(136) 评论(0) 推荐(0)
摘要: C#中对注册表的操作 Windows 操作系统的注册表包含了很多有关计算机运行的配置方式,打开注册表我们可以看到注册表是按类似于目录的树结构组织的,其中第二级目录包含了五个预定义主键分别是:HKEY_CLASSES_ROOT,HKEY_CURRENT_USER,HKEY_LOCAL_MACHINE, 阅读全文
posted @ 2018-04-07 14:37 v123ve 阅读(145) 评论(0) 推荐(0)
摘要: 1、DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 阅读全文
posted @ 2018-04-07 14:35 v123ve 阅读(105) 评论(0) 推荐(0)
摘要: Console.WriteLine("请输入需要计算的数"); int a = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("请输入项数"); int n = Convert.ToInt32(Console.ReadLine()); 阅读全文
posted @ 2018-04-07 14:31 v123ve 阅读(353) 评论(0) 推荐(0)