首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏Angular学习规划

    C#飛行棋小遊戲

    " "); Console.WriteLine("{0}按任意鍵開始擲骰子", PlayerNames[playerNumber]); Console.ReadKey true); Console.WriteLine("{0}按任意鍵開始移動", PlayerNames[playerNumber]); Console.ReadKey (true); Console.WriteLine("{0}移動完成", PlayerNames[playerNumber]); Console.ReadKey PlayerNames[playerNumber], PlayerNames[1 - playerNumber]); Console.ReadKey (true); Console.WriteLine("{0}移動完成", PlayerNames[playerNumber]); Console.ReadKey

    55830编辑于 2022-06-28
  • C# 静态与动态数组

    string[3]; StrArray[0] = "abc" ; StrArray[1] = "abc"; Console.ReadKey x++) { IntArray[x] = IntArray[x - 1]; } Console.ReadKey += name[x] + "|"; Console.WriteLine(str + name[name.Length - 1]); Console.ReadKey 0; x < name.Length - 1; x++) Console.Write(name[x] + " |" ); Console.ReadKey foreach (int x in MyArray) Console.Write(x + " "); Console.ReadKey

    2.4K20编辑于 2022-12-28
  • 来自专栏Angular学习规划

    控制台程序源碼-飛行棋

    " "); Console.WriteLine("{0}按任意鍵開始擲骰子", PlayerNames[playerNumber]); Console.ReadKey true); Console.WriteLine("{0}按任意鍵開始移動", PlayerNames[playerNumber]); Console.ReadKey (true); Console.WriteLine("{0}移動完成", PlayerNames[playerNumber]); Console.ReadKey PlayerNames[playerNumber], PlayerNames[1 - playerNumber]); Console.ReadKey playerNumber]); Falgs[playerNumber] = true; Console.ReadKey

    56820编辑于 2022-06-28
  • 来自专栏林德熙的博客

    C# 代码占用的空间

    然后在不使用 BhgpsWnb 这个项目的代码,我运行下面的代码 static void Main(string[] args) { Console.ReadKey var ablkekbuuimc = new Ablkekbuuimc(); ablkekbuuimc.Aaxfyerenjmfe(2); Console.ReadKey static void Main(string[] args) { Type t = typeof(Ablkekbuuimc); Console.ReadKey file = new FileInfo("BhgpsWnb.exe"); Assembly.LoadFile(file.FullName); Console.ReadKey app = Load(); GC.Collect(); GC.WaitForFullGCComplete(); Console.ReadKey

    84710编辑于 2022-08-04
  • C# 笔记之基本语法

    source < y) { Console.WriteLine("符合规范"); } Console.ReadKey ", MyArray[index]); index++; } while (index < 10); Console.ReadKey { Console.WriteLine("输出: {0}", Str); } Console.ReadKey x, x * y); } Console.WriteLine(); } Console.ReadKey 20); Console.WriteLine("x = {0} y = {1}", ptr.width, ptr.height); Console.ReadKey

    32310编辑于 2022-12-28
  • 来自专栏林德熙的博客

    C# 代码占用的空间

    然后在不使用 BhgpsWnb 这个项目的代码,我运行下面的代码 static void Main(string[] args) { Console.ReadKey var ablkekbuuimc = new Ablkekbuuimc(); ablkekbuuimc.Aaxfyerenjmfe(2); Console.ReadKey static void Main(string[] args) { Type t = typeof(Ablkekbuuimc); Console.ReadKey file = new FileInfo("BhgpsWnb.exe"); Assembly.LoadFile(file.FullName); Console.ReadKey app = Load(); GC.Collect(); GC.WaitForFullGCComplete(); Console.ReadKey

    1.1K10发布于 2018-09-18
  • C# 语言程序设计笔记

    source < y) { Console.WriteLine("符合规范"); } Console.ReadKey ", MyArray[index]); index++; } while (index < 10); Console.ReadKey { Console.WriteLine("输出: {0}", Str); } Console.ReadKey (); Console.ReadKey(); } } } 二进制文件存取: using System; using System.Text; using 匹配Asp.net字符:{1}", "C# Java", Regex.Match("C# Java", RegexStr).Value); Console.ReadKey()

    4.4K10编辑于 2022-12-28
  • 来自专栏GreenLeaves

    WCF系列教程之WCF客户端异常处理

    { Console.WriteLine(ex.GetType() + ":" + ex.Message); Console.ReadKey { Console.WriteLine(ex.GetType() + ":" + ex.Message); Console.ReadKey { Console.WriteLine(ex.GetType() + ":" + ex.Message); Console.ReadKey { Console.WriteLine(ex.GetType() + ":" + ex.Message); Console.ReadKey { Console.WriteLine(ex.GetType() + ":" + ex.Message); Console.ReadKey

    1.4K60发布于 2018-01-26
  • 来自专栏科控自动化

    C#控制台程序后台运行时退出?

    ; //Console.ReadKey(); Thread.Sleep(-1); } linux系统用后台运行时 Console.ReadKey();还是会退出程序。 在Linux系统上,当使用Console.ReadKey()方法时,它会等待用户在终端输入一个字符,并且在接收到输入后继续执行程序。 因此,如果您希望在Linux系统上以后台模式运行程序,并且需要程序一直运行而不受用户输入的影响,可以使用Thread.Sleep(-1)方法来代替Console.ReadKey()。

    71821编辑于 2023-09-22
  • C# 中的函数与方法

    bool ret = Program.IsRun(2020); Console.WriteLine("闰年: {0}", ret); Console.ReadKey out number); Console.WriteLine("My转换结果输出: {0} 状态:{1}", number,my_ret); Console.ReadKey Exchange(ref x, ref y); Console.Write("交换后: x = {0} y = {1}", x, y); Console.ReadKey string[] args) { GetName(1001,"admin", "lyshark", "guest"); Console.ReadKey Sum(10, 20)); Console.WriteLine("double => {0}", Sum(10.5, 20.5)); Console.ReadKey

    1.3K10编辑于 2022-12-28
  • 来自专栏知识分享

    C#构造方法--实例化类时初始化的方法

    static void Main(string[] args) { a a1 = new a(); Console.ReadKey static void Main(string[] args) { a a1 = new a("1"); Console.ReadKey static void Main(string[] args) { a a1 = new a("1"); Console.ReadKey

    2.2K40发布于 2018-04-17
  • 来自专栏liulun

    C#4.0新特性 可选命名参数

     Main(string[] args)         {             PrintStudents(name: "xland", id: 8);             Console.ReadKey         }         static void Main(string[] args)         {             test3(6);             Console.ReadKey             b.test5();             test4 c = a as test4;             c.test5();             Console.ReadKey string[] args)         {             test7(1,9);             test7(1,b:test8());             Console.ReadKey

    74620编辑于 2022-05-09
  • 来自专栏技术之路

    c# LINQ查询方法(1)

    int a in list) { Console.WriteLine(a); } Console.ReadKey int a in list) { Console.WriteLine(a); } Console.ReadKey int a in list) { Console.WriteLine(a); } Console.ReadKey { Console.WriteLine(k); } } Console.ReadKey

    54610编辑于 2024-04-23
  • 来自专栏CSharp编程大全

    C# TCP通讯示例

    (Exception ex) { Console.WriteLine(ex.Message); Console.ReadKey (Exception ex) { Console.WriteLine(ex.Message); Console.ReadKey (Exception ex) { Console.WriteLine(ex.Message); Console.ReadKey (Exception ex) { Console.WriteLine(ex.Message); Console.ReadKey (Exception ex) { Console.WriteLine(ex.Message); Console.ReadKey

    2.5K20发布于 2021-01-13
  • 来自专栏码农阿宇

    关于C#委托的一些学习笔记

    ) { //lama表达式=>goes to SayHi del=(string name)=>{console.writeLine(“你好”+name);}; Del(“张三”); Console.readKey string)o1; String s2=(string)o2; Return s1.Length-s2.length; }); Console.writeline(result); Console.readkey args) { Int[] nums={1,2,3,4,5}; Int max=getMax<int>(nums,compare1); Console.writeline(max); Console.readkey ,”sdfggsdfg”}; getMax<string>(names,(string s1,string s2)=>{ return s1.length-s2.length; }) Console.readkey 1,2,3,4,5,6}; list.removeAll(n=>n>4); foreach(var item in list) { Console.writeLine(item); } Console.readKey

    67070发布于 2018-04-18
  • 来自专栏知识分享

    学习C#(一)

    (); cla.A = 10; Console.WriteLine(cla.A); Console.ReadKey ; cla.A = 666666; Console.WriteLine(cla.A); Console.ReadKey Inherit_1 inher_1 = new Inherit_1(); inher_1.print(); Console.ReadKey Inherit_1 inher_1 = new Inherit_1(); inher_1.print(); Console.ReadKey Main(string[] args) { C c = new C(); c.print(); Console.ReadKey

    86540发布于 2018-04-18
  • 来自专栏程序人生 阅读快乐

    利用window自带的powershell进行文件哈希值校验

    ;[Console]::Readkey() | Out-Null;exit" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion ;[Console]::Readkey() | Out-Null;exit" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion ;[Console]::Readkey() | Out-Null;exit" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion ;[Console]::Readkey() | Out-Null;exit" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion ;[Console]::Readkey() | Out-Null;exit"

    5K20发布于 2019-07-31
  • 来自专栏码匠的流水账

    聊聊claudb的importRDB

    readString(expireTime)); expireTime = null; break; case LIST: ensure(db, readKey readList(expireTime)); expireTime = null; break; case SET: ensure(db, readKey TTL_SECONDS、TTL_MILLISECONDS、STRING、LIST、SET、SORTED_SET、HASH、END_OF_STREAM;最后执行verifyChecksum校验checksum readKey 1.7.1/src/main/java/com/github/tonivade/claudb/persistence/RDBInputStream.java private DatabaseKey readKey = size) { throw new IOException("error reading stream"); } return array; } readKey

    38200发布于 2020-08-19
  • 来自专栏码匠的流水账

    聊聊claudb的importRDB

    readString(expireTime)); expireTime = null; break; case LIST: ensure(db, readKey readList(expireTime)); expireTime = null; break; case SET: ensure(db, readKey TTL_SECONDS、TTL_MILLISECONDS、STRING、LIST、SET、SORTED_SET、HASH、END_OF_STREAM;最后执行verifyChecksum校验checksum readKey 1.7.1/src/main/java/com/github/tonivade/claudb/persistence/RDBInputStream.java private DatabaseKey readKey = size) { throw new IOException("error reading stream"); } return array; } readKey

    36810发布于 2020-08-21
  • 来自专栏CSharp编程大全

    C#开启线程的四种方式

    a.BeginInvoke(3, 4, null, null); Console.WriteLine("执行线程"); Console.ReadKey Resume(); //结束线程 //t1.Abort(); t2.Start(); Console.ReadKey ThreadPool.QueueUserWorkItem(new WaitCallback(TestThreadPool), new string[] { "hjh" }); Console.ReadKey { Task task = new Task(DownLoadFile_My); task.Start(); Console.ReadKey

    1.9K20发布于 2020-08-19
领券