摘要: Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.Note:You may assume that nums1 has enough space (size that is greater or equal to m + n) to hold additional ... 阅读全文
posted @ 2017-01-28 19:13 xiejunzhao 阅读(125) 评论(0) 推荐(0)
摘要: 函数指针重载:参数类型要匹配,指针类型必须精确匹配 使用decltype作用于某个函数时,要显示加上*以表示我们需要返回指针,而非函数本身 int func(int a, int b);using pFunc1 = decltype(func) *;typedef decltype(func) *pFunc2;using pFunc3 = int (*)(int a, int b);using ... 阅读全文
posted @ 2017-01-28 17:37 xiejunzhao 阅读(116) 评论(0) 推荐(0)
摘要: 顶层const:指针本身是常量,不能改变指针的指向底层const:指针指向一个常量,不能改变指向对象的值null 阅读全文
posted @ 2017-01-28 17:36 xiejunzhao 阅读(106) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication1 { class Program { delegate double ProcessDelegate(double p... 阅读全文
posted @ 2017-01-28 17:32 xiejunzhao 阅读(182) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System... 阅读全文
posted @ 2017-01-28 17:32 xiejunzhao 阅读(1100) 评论(0) 推荐(0)
摘要: 项目需要,经常需要手动调整图片尺寸,流程太过麻烦,效率低下。所以写了一个小程序,以提高工作效率using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.IO;using System.Drawing;using... 阅读全文
posted @ 2017-01-28 17:24 xiejunzhao 阅读(2798) 评论(0) 推荐(0)
摘要: 项目需要,经常需要手动压缩图片,流程太过麻烦,效率低下。所以写了一个小程序,以提高工作效率using System;using System.Net;using System.Text;using System.IO;class Program{ static void Main() { Console.WriteLine("请输入TinyPng.com的API KEY,... 阅读全文
posted @ 2017-01-28 17:23 xiejunzhao 阅读(1259) 评论(0) 推荐(0)