梦幻抽奖VS金山打字程序
int j = 0; while (true) { ConsoleKeyInfo c; string str = "1,2,3,4,5,6,7,8,9,0,"; str += "a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,"; str += "A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z"; string[] s = str.Split(new char[] { ','}); string strnum = ""; Random r = new Random(); int number = r.Next(62); strnum = s[number]; Console.Write(strnum); int Row, Col; Row = Console.CursorTop; Col = Console.CursorLeft; Console.SetCursorPosition(Col-1, Row + 1); int width = Console.WindowWidth; j++; l1: c = Console.ReadKey(); if (c.Key != ConsoleKey.Escape) { if (c.KeyChar.ToString().Trim() == strnum) { Console.SetCursorPosition(Col-1, Row + 1); Console.ForegroundColor = ConsoleColor.Red; Console.Write(strnum); Console.ResetColor(); if (j == 27) { j = 0; Console.WriteLine("\n"); } else Console.SetCursorPosition(Col + 2, Row); } else { Console.SetCursorPosition(Col - 1, Row + 1); goto l1; } } else break; }。
文件列表
.rar
(预估有个29文件)
韩帅帅-金山打字
ConsoleApplication5
Program.cs
3KB
obj
ConsoleApplication5.csproj.FileList.txt
182B
Debug
TempPE
ConsoleApplication5.exe
16KB
ConsoleApplication5.pdb
14KB
bin
暂无评论