摘要: compiling source code file(.cpp,.cxx,.cc,.C,.c++) -> object files(.o,.obj) -> link object files together into an executable (app.exe, app), static lib 阅读全文
posted @ 2022-08-22 22:25 FrancisForeverhappy 阅读(16) 评论(0) 推荐(0) 编辑
摘要: initialization int x{}; // x is filled with zeroes, so x == 0 int x{123}; int x(123); int a, b = 123, c{}, d{456}, e(789); int* x, y, z; == int* x; in 阅读全文
posted @ 2022-08-17 00:02 FrancisForeverhappy 阅读(20) 评论(0) 推荐(0) 编辑
摘要: Size of C++ type Integer There is also a type called size_t which is either a 32-bit or 64-bit unsigned integer, depending on the CPU being compiled f 阅读全文
posted @ 2022-08-16 19:34 FrancisForeverhappy 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 千里之行, 基于跬步 一点点进步,一点点被认可 关注有价值的东西: 市场需求,公司需求 技术趋势(最新技术) 什么是有价值的技术: 这个技术解决什么问题?为什么同类技术做不到? 为什么这样解决?有更好的方式么? 找到能体现价值的地方 高速发展的公司才能体现价值 动手能力(代码细节) 技术 (和钱有关 阅读全文
posted @ 2021-08-10 23:57 FrancisForeverhappy 阅读(33) 评论(0) 推荐(0) 编辑
摘要: Reference: https://www.red-gate.com/products/dotnet-development/ants-memory-profiler/learning-memory-management/memory-management-fundamentals 1. What 阅读全文
posted @ 2021-08-05 10:43 FrancisForeverhappy 阅读(27) 评论(0) 推荐(0) 编辑
摘要: Subject 单词含义 observer Type: System.IObserver The observer used to publish messages to the subject. observable Type: System.IObservable The observable 阅读全文
posted @ 2021-05-07 14:57 FrancisForeverhappy 阅读(561) 评论(0) 推荐(0) 编辑
摘要: 引言 微信中的订阅号,订阅博客和QQ微博中关注好友,这些都属于观察者模式的应用 观察者模式介绍 定义 观察者模式定义了一种一对多的依赖关系,让多个观察者对象可以同时监听某一个主题对象,这个主题对象在发生状态变化时,会通知所有观察者对象,使它们能够自动更新自己,解决的是“当一个对象的改变需要同时改变多 阅读全文
posted @ 2021-05-04 18:50 FrancisForeverhappy 阅读(98) 评论(0) 推荐(0) 编辑
摘要: C#8.0 引入了“nullable reference types”和“non-nullable reference types” 引用不应为 null。 当变量不应为 null 时,编译器会强制执行规则,以确保在不首先检查它们是否为 null 的情况下,取消引用(dereference)这些变量 阅读全文
posted @ 2021-04-30 17:24 FrancisForeverhappy 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 语言集成查询 (LINQ) Example: 造一副纸牌,然后执行一系列洗牌操作,每次都会输出序列。 还可以将更新后的顺序与原始顺序进行比较。 // Program.cs // The Main() method static IEnumerable<string> Suits() { yield 阅读全文
posted @ 2021-04-18 15:30 FrancisForeverhappy 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 继承 继承仅适用于类和接口。 并非所有基类成员都可供派生类继承。 以下成员无法继承: 静态构造函数:用于初始化类的静态数据。 实例构造函数:在创建类的新实例时调用。 每个类都必须定义自己的构造函数。 终结器:由运行时的垃圾回收器调用,用于销毁类实例。 可访问性 虽然基类的其他所有成员都可供派生类继承 阅读全文
posted @ 2021-04-17 11:55 FrancisForeverhappy 阅读(44) 评论(0) 推荐(0) 编辑