- 博客(5)
- 收藏
- 关注
原创 智能指针实现
智能指针 -类的定义 `template class MySmartPoint { T* m_ptr; size_t* ref_count = 0; public: MySmartPoint(T* ptr = nullptr); ~MySmartPoint(); MySmartPoint(const MySmartPoint& s_point); MySmartPoint& ...
2019-04-11 11:07:26
304
原创 指针数组,数组指针,数组引用
好久不用C++,今天遇到数组指针又迷糊了,感觉复习一波并记录下来 数组引用 定义一个4x3的数组: int arr[4][3] = { 0,11,22,33,44,55,66,77,88,1,2,3 }; 定义对数组的引用:ref是一个大小为3的数组,是对a[0]的引用; int(&ref)[3] = arr[0]; 若想对整个arr引用,在定义引用时则创建二维数组: int(&am...
2018-11-21 10:49:37
1353
原创 C# MVVM,ICommand的简单实现
Model部分 实现INotifyPropertyChanged接口,使其能够发出某一属性值发生改变的通知 using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; ...
2018-11-15 19:13:48
5688
1
原创 C# async 和 await的使用
异步方法具有三个可让开发人员选择的返回类型:Task、Task 和 void。 #返回类型 - Task
2018-11-13 16:10:22
335
1
原创 C# Task总结(Task,Action,Func,委托之间的联系)
Task,Action,Func,lambda delegate void Fun(); var task = new Task( fun)
2018-11-13 11:46:48
12955
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人