Loading

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 24 下一页
摘要: namespace DataContext_ItemSource_Demo{ public class Person { public string Name; } public class ViewModel { p... 阅读全文
posted @ 2018-12-26 15:56 李正浩 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 1 例子1输出的结果为: 可以看出执行的结果为:A——D——B——C——E. 我们再看下一个例子(注意,我们把代码中D和E的位置交换) 2 例子2 结果: 结果为:A——B——C——E——D 3 理解 Async方式,使用Async标记 Test 为异步方法,用Await标... 阅读全文
posted @ 2018-12-19 12:17 李正浩 阅读(153) 评论(0) 推荐(1) 编辑
摘要: 首先要设置伸缩函数的同时也伸缩region块: 快捷键Ctrl+M+O 收缩所有方法Ctrl+M+L 展开所有方法 阅读全文
posted @ 2018-12-18 11:36 李正浩 阅读(447) 评论(0) 推荐(0) 编辑
摘要: 目录1、View模型代码2、ViewModel模型代码3、数据模型4、样例演示5、一些知识点这里简单实现一个listbox绑定的功能,符合MVVM模型。 View模型代码(View视图以及窗体类的后台代码) ... 阅读全文
posted @ 2018-12-17 21:06 李正浩 阅读(251) 评论(0) 推荐(0) 编辑
摘要: //得到该进程ID Xpgrep Xorg//杀掉进程kill X然后重新登陆帐号即可 阅读全文
posted @ 2018-12-02 19:23 李正浩 阅读(638) 评论(0) 推荐(0) 编辑
摘要: 题目 代码class Solution {public: string longestPalindrome(string s) { if(s.size()==1) return s; string max=s.substr(... 阅读全文
posted @ 2018-09-17 21:14 李正浩 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 题目 代码class Solution {public: int lengthOfLongestSubstring(string s) { //用dic存储每个字符最后一次出现的位置 vector dic(255,-1); in... 阅读全文
posted @ 2018-09-17 21:13 李正浩 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 题目 代码class Solution {public: vector> groupAnagrams(vector& strs) { vector> res; unordered_map> table; for(auto i:s... 阅读全文
posted @ 2018-09-17 21:11 李正浩 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 题目 代码class Solution {public: void setZeroes(vector>& matrix) { if(matrix.size()==0) return; int lastRow=-1,H=ma... 阅读全文
posted @ 2018-09-17 18:59 李正浩 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 题目 代码class Solution {public: vector> threeSum(vector& nums) { //先固定住第一个数字,然后后面两个数字为 i+1和 nums.size()-1开始往中间缩小,并且要考虑数字重复的问题,时间复杂度... 阅读全文
posted @ 2018-09-17 18:55 李正浩 阅读(91) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 24 下一页