上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 41 下一页

C#可扩展编程MEF Managed Extensibility Framework

摘要: MEF - Managed Extensibility Framework 是用于创建轻量,可扩展应用程序的库. 我们可以理解为它的主要作用是解耦, 它让开发人员得以轻松的封装代码并避免强依赖性. MEF让扩展不仅可以在应用程序内重复使用,还可以跨程序重复使用 MEF在程序集System.Compo 阅读全文
posted @ 2023-01-06 16:45 新西兰程序员 阅读(39) 评论(0) 推荐(0)

C++中对句柄Handle的理解

摘要: 在C++的初学者中,很容易把句柄理解成指针, 但其实,句柄并不是指针. 那么句柄是什么,一句话,句柄是资源(或项目)的唯一标识。 我们需要搞清楚的是,句柄Handle到底是怎么来标识资源的 在Windows程序中,有各种各样的资源(窗口,图标,光标等),系统在创建这些资源时为他们分配内存,并返回标识 阅读全文
posted @ 2023-01-06 10:37 新西兰程序员 阅读(1101) 评论(0) 推荐(0)

C#遍历二叉树

摘要: 最近看了一些关于二叉树的文章,于是学习了一下C#遍历二叉树的几种方式,特记录如下 二叉树,是一种数据结构, 它是一种非线性的数据结构. 这里的非线性是相对于线性数据结构而言的,像链表,数组,就是属于线性的数据结构. 和链表,数组等线性数据结构比起来,树的平均运行时间更短, 与树相关的排序时间复杂度都 阅读全文
posted @ 2023-01-03 17:07 新西兰程序员 阅读(152) 评论(0) 推荐(0)

学习Topshelf - 一个用.NET构建的windows服务框架

摘要: 公司项目中有用到Topshelf 可以参考这篇博客进行了解 https://www.cnblogs.com/zcqiand/p/14613093.html 阅读全文
posted @ 2022-12-05 13:35 新西兰程序员 阅读(37) 评论(0) 推荐(0)

C++中的几种构造函数和析构函数

摘要: 本篇文章,我们来了解一下C++中的几种构造函数,以及析构函数 #include <format> #include <iostream> #include <string> using std::format; using std::cout; using std::string; const st 阅读全文
posted @ 2022-11-28 16:06 新西兰程序员 阅读(103) 评论(0) 推荐(0)

C++中class中对私有变量的访问

摘要: C++中写class时,对私有变量通常使用set和get方法来进行访问,比较标准的例子 class A { int ia {}; int ib {}; int ic {}; public: A (int a, int b, int c) : ia(a), ib(b), ic(c) {} //构造函数 阅读全文
posted @ 2022-11-28 15:06 新西兰程序员 阅读(250) 评论(0) 推荐(0)

C++中Function里面的call by value 和 call by reference

摘要: 先来看看C++中call by value的function void func(int a) { ++a; } int main(){ int a {7}; func(a); cout << format("value is {}\n",a); //a 会输出7 } c++中call by ref 阅读全文
posted @ 2022-11-28 13:44 新西兰程序员 阅读(166) 评论(0) 推荐(0)

C++中的Pointer member dereference(D-reference) operator

摘要: 在C++中,比如我们可以把一个结构体struct的地址赋给一个指针pointer 然后使用这个指针去访问这个结构体中的元素时,可以使用pointer member D-reference operator: -> 用来access a member through a pointer #includ 阅读全文
posted @ 2022-11-28 11:24 新西兰程序员 阅读(42) 评论(0) 推荐(0)

C++中的Type Alias 和 Primitive Arrays 和 Primitive C-string

摘要: 在C++中,我们通常使用typedef来实现type alias. 比如: #include <cstdint> //C standard int typedef uint32_t points_t; //points_t is alias of uint32_t typedef uint64_t 阅读全文
posted @ 2022-11-24 16:16 新西兰程序员 阅读(81) 评论(0) 推荐(0)

C语言中union类型学习

摘要: union指的是C语言的共用体(联合体) a union is a container of overlapping object 共用体它表示几个变量共用同一个内存位置, 在不同的时间保存不同的数据类型和不同长度的变量 union中,里面全部的共用体成员共用同一个内存空间, 而且特别重要的一点是: 阅读全文
posted @ 2022-11-21 17:02 新西兰程序员 阅读(387) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 41 下一页