上一页 1 2 3 4 5 6 7 8 ··· 25 下一页
摘要: static void Main(string[] args) { Console.WriteLine("Starting program..."); Thread t = new Thread(PrintNumbersWithDelay); t.Start(); Thread.Sleep(Time 阅读全文
posted @ 2020-04-18 15:26 幸福安康 阅读(966) 评论(1) 推荐(0) 编辑
摘要: 转自:leecode 给你 n 个非负整数 a1,a2,...,an,每个数代表坐标中的一个点 (i, ai) 。在坐标内画 n 条垂直线,垂直线 i 的两个端点分别为 (i, ai) 和 (i, 0)。找出其中的两条线,使得它们与 x 轴共同构成的容器可以容纳最多的水。说明:你不能倾斜容器,且 n 阅读全文
posted @ 2020-04-18 02:58 幸福安康 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 这个目录在windows上删除特别慢,跟中病毒似的。处理方法如下: 1.在全局安装rimraf模块: npm install rimraf -g 2.然后通过其命令来快速删除node_modules目录: rimraf node_modules 阅读全文
posted @ 2020-04-15 17:41 幸福安康 阅读(3475) 评论(0) 推荐(0) 编辑
摘要: 在编程过程中,数据转换是经常要用到的,C#中数据转换的方法很多,拿将目标对象转换为整型(int)来讲,有四种方法:分别为(int)、int.Parse()、int.TryParse()和Convert.ToInt32(),那么这四种方法对被转换对象有什么限制,以及各自之间有什么区别呢?相信很多童鞋也 阅读全文
posted @ 2020-04-13 14:37 幸福安康 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 右键点击项目,点击“属性”: 看图,红框中位置,多个参数用空格分开。 代码中使用参数: static void Main(string[] args){ string url = args[0]; string targetFileName = args[1]; } 第2种方法: 直接在cmd里命令 阅读全文
posted @ 2020-04-11 15:04 幸福安康 阅读(411) 评论(0) 推荐(0) 编辑
摘要: class QuickSortDemo { //快速排序 static void Main(string[] args) { int[] arr = new int[] { 4,2,3,8,9,6,5,1,7}; QuickSort(arr,0,8); Console.WriteLine(" " + 阅读全文
posted @ 2020-03-31 16:45 幸福安康 阅读(133) 评论(0) 推荐(0) 编辑
摘要: class InvokingAnAsynchronousTask { public static void Main() { const int repetitions = 1000; // Use Task.Factory.StartNew<string>() for // TPL prior t 阅读全文
posted @ 2020-03-24 14:10 幸福安康 阅读(170) 评论(0) 推荐(0) 编辑
摘要: CREATE TABLE ProgrectDetail ( ProgrectName NVARCHAR(20), --工程名称 OverseaSupply INT, --海外供应商供给数量 NativeSupply INT, --国内供应商供给数量 SouthSupply INT, --南方供应商供 阅读全文
posted @ 2020-03-17 16:37 幸福安康 阅读(155) 评论(0) 推荐(0) 编辑
摘要: public class Singleton { private static Singleton _Singleton = null; private static object Singleton_Lock = new object(); public static Singleton Crea 阅读全文
posted @ 2020-03-17 11:28 幸福安康 阅读(1296) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-03-17 11:03 幸福安康 阅读(83) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 25 下一页