09 2022 档案

摘要:For a really long time, I had two mysteries that were hanging over me. I didn't understand them and, to be honest, I was quite afraid to look into the 阅读全文
posted @ 2022-09-30 15:54 _Zzzwj 阅读(52) 评论(0) 推荐(0) 编辑
摘要:什么是对象? 1、Object = Entity ///对象是东西 2、Object is variable in programming language. ///对象即变量 3、Object = Attributes + Services Data : the properties or sta 阅读全文
posted @ 2022-09-20 16:26 _Zzzwj 阅读(39) 评论(0) 推荐(0) 编辑
摘要:## C++指针类型的引用 #include <iostream> using namespace std; 3 int main() 4 { int a = 3;//定义变量a; int* p = &a; //定义指针变量p,初始化为 &a 类型可以理解为 int* 变量名为p int* &q = 阅读全文
posted @ 2022-09-16 15:26 _Zzzwj 阅读(20) 评论(0) 推荐(0) 编辑
摘要:C++在C语言的基础上增加了类和对象的概念,官方对类和对象的解释是:对象是类的实例化,类是对象的抽象,其实这个概念也很抽象,举一个简单的例子来说明这个关系: 在汽车生产车间我们要先画一张完整的汽车设计图后再通过组装零件来完成汽车的制造,而这里的图纸就相当于C++中的类,通过图纸生产的汽车就是对象,所 阅读全文
posted @ 2022-09-07 19:29 _Zzzwj 阅读(110) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示