Qt 在槽函数中获取信号发送对象 Qt中提供了一个函数 qobject_cast(QObject *object),可以通过这个函数判断信号发出对象 Qt 帮助文档的解释: Returns the given object cast to type T if the object is of typ ...
分类:
其他好文 时间:
2020-06-21 17:53:46
阅读次数:
80
闭包 我们来介绍闭包及其相关的概念 闭包的定义 下面所提及的闭包是对$H$(在$T$中)而言的 定义一 the closure of \(H\) (in \(T\)) is defined as: \[ H^-:=H \cup H' \] where \(H'\) is the derived se ...
分类:
其他好文 时间:
2020-06-19 23:09:58
阅读次数:
58
规则:virtual函数系数动态绑定而缺省的参数是静态绑定。 调用一个定义域derived class内的virtual函数的同时使用的可能是base class为它所指定的缺省参数值。 class Shape{ public: enum ShapeColor {red, green, blue}; ...
分类:
其他好文 时间:
2020-06-12 14:23:01
阅读次数:
51
例程: 1 class base{ 2 private: 3 int x; 4 public: 5 virtual void mf1() = 0; 6 virtual void mf1(int); 7 virtual void mf2(); 8 void mf3(); 9 void mf3(doub ...
分类:
其他好文 时间:
2020-06-11 19:47:32
阅读次数:
63
Base基类和Derived派生类都有print()函数,此时指向派生类对象的基类指针仍旧调用基类print() 将基类print()改为virtual虚函数之后基类指针可以调用派生类print() 所以,当基类函数是虚函数时,指向派生类对象的基类指针调用派生类函数 所以,个人以为,虚函数的作用就是 ...
分类:
编程语言 时间:
2020-06-11 00:43:11
阅读次数:
93
xcode 11.0在使用libusb开发的时候,编译的过程中经常会出现以下错误,每次都必须clean才能恢复正常, 根据提示将build phases的Compile Sources直接挪动到最后边,没能解决问题 也有人说Target ->Build Phases下,把Embed APP Exte ...
分类:
其他好文 时间:
2020-06-01 18:05:08
阅读次数:
179
一 文献题目: Characterizing the Causal Pathway for Genetic Variants Associated with Neurological Phenotypes Using Human Brain Derived Proteome Data 不想看英文题目 ...
分类:
其他好文 时间:
2020-05-24 16:35:06
阅读次数:
116
参考: https://investors.modernatx.com/news-releases/news-release-details/moderna-announces-positive-interim-phase-1-data-its-mrna-vaccine May 18, 2020 a ...
分类:
其他好文 时间:
2020-05-18 22:22:32
阅读次数:
361
Recoil allows us to use atoms in order to store pieces of state. More often than not in our apps we need to use data that derives from our application ...
分类:
其他好文 时间:
2020-05-16 20:48:21
阅读次数:
81
类继承关系图 注:从图中可以看出,派生类不仅有自己的方法和属性,同时它还包括从父类继承来的方法和属性。当我们从派生类向基类转换时,不管用传统的c语言还是c++转换方式都可以百分百转换成功。但是可怕是向下转换类型,也就是我们从基类向派生类转换,当我们采用传统的C语言和c++转换时,就会出现意想不到的情 ...
分类:
编程语言 时间:
2020-05-11 19:06:21
阅读次数:
72