<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[m0_73668892的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/m0_73668892</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; m0_73668892]]></copyright><item><title><![CDATA[cocos creator子节点的精灵不能显示【已解决】]]></title><link>https://blog.youkuaiyun.com/m0_73668892/article/details/136324687</link><guid>https://blog.youkuaiyun.com/m0_73668892/article/details/136324687</guid><author>m0_73668892</author><pubDate>Tue, 27 Feb 2024 15:57:07 +0800</pubDate><description><![CDATA[最后，检查到是Camara的原因，要确保Visibility选择到对子节点可见的挡位，可选择Everything挡位。检查过赋值同样的spriteFrame，在根节点却可以显示，不是spriteFrame的问题；起因是创建一个根节点后，在根节点挂载的子节点，其spriteFrame不能显示。子节点Opacity透明度已经设为255（完全不透明）；子节点position属性在画布可见范围内；子节点active属性为true；]]></description><category></category></item><item><title><![CDATA[c++多态、虚函数]]></title><link>https://blog.youkuaiyun.com/m0_73668892/article/details/132510565</link><guid>https://blog.youkuaiyun.com/m0_73668892/article/details/132510565</guid><author>m0_73668892</author><pubDate>Sun, 15 Oct 2023 23:08:27 +0800</pubDate><description><![CDATA[多态是指接口的多种不同实现方式，使得同一接口有多种不同行为。多态分动态和静态，是类继承+虚函数机制实现的，时通过虚函数接口，不同对象调用其对应的虚函数实现形式来产生不同行为；是模板的泛型编程，模板允许将不同行为与单个泛化符号进行关联，在阶段便能确定泛化符号进而确定行为。一般说的多态指的是动态多态，以下也直接称其为多态了。虚函数的调用是动态绑定的过程，函数地址不固定，便需要运行时才能确认，通过访问虚函数表再根据函数名或索引找到对应函数地址的方式来进行，过程为：this->vptr->vtable->具体函数。]]></description><category></category></item><item><title><![CDATA[c++必看——浅拷贝和深拷贝]]></title><link>https://blog.youkuaiyun.com/m0_73668892/article/details/133845977</link><guid>https://blog.youkuaiyun.com/m0_73668892/article/details/133845977</guid><author>m0_73668892</author><pubDate>Sun, 15 Oct 2023 19:17:28 +0800</pubDate><description><![CDATA[（1）浅拷贝仍只做简单的值拷贝，即拷贝指针或引用保存的指向内容的地址，使得拷贝后的对象与原对象指向同一块内存，这样容易出现内存泄漏（一个对象回收指向的内存后，另一个访问它造成非法访问），适用于拷贝不含指针或引用类型的对象；（2）深拷贝会拷贝原对象指向的内存区，即不与原对象共享同一块内存，是一个独立的副本，不会与原对象互相影响，缺点是当拷贝的对象很大时，很占用内存等资源。注：一般系统自动生成的拷贝构造函数都是浅拷贝，深拷贝需要自己实现。1、对于值类型，无论浅拷贝还是深拷贝，都只做简单的值拷贝。]]></description><category></category></item><item><title><![CDATA[windows取消文件预览窗口]]></title><link>https://blog.youkuaiyun.com/m0_73668892/article/details/132851633</link><guid>https://blog.youkuaiyun.com/m0_73668892/article/details/132851633</guid><author>m0_73668892</author><pubDate>Wed, 13 Sep 2023 13:48:31 +0800</pubDate><description><![CDATA[]]></description><category></category></item><item><title><![CDATA[c++空类、缺省的默认函数]]></title><link>https://blog.youkuaiyun.com/m0_73668892/article/details/132378878</link><guid>https://blog.youkuaiyun.com/m0_73668892/article/details/132378878</guid><author>m0_73668892</author><pubDate>Fri, 25 Aug 2023 13:36:55 +0800</pubDate><description><![CDATA[但当删除了 拷贝构造函数 和 赋值运算符重载函数 后，对象b和c就无法创建成功了，因为编译器检查不到有那俩移动的函数，所以退而求其次，调用了拷贝构造和赋值重载函数，将构造它们的右值实参赋给了const A &这个形参，转变为左值。下面的代码编译和运行是没问题的，乍一看好像确实有那俩函数：b由a移动构造来，c再由b移动赋值来。还有的说重载了c++11后引入移动语义，类的移动构造和移动赋值也默认生成，我觉得也是没有的。原因如下，正因为没有重载，所以&是无法取到可用地址的，仅相当于“A *p；]]></description><category></category></item><item><title><![CDATA[mklink没有足够的权限执行此操作]]></title><link>https://blog.youkuaiyun.com/m0_73668892/article/details/132447239</link><guid>https://blog.youkuaiyun.com/m0_73668892/article/details/132447239</guid><author>m0_73668892</author><pubDate>Wed, 23 Aug 2023 10:44:22 +0800</pubDate><description><![CDATA[windows创建链接mklink需要管理员权限，菜单搜索cmd以管理员方式运行即可。]]></description><category></category></item><item><title><![CDATA[c++函数重载]]></title><link>https://blog.youkuaiyun.com/m0_73668892/article/details/132382201</link><guid>https://blog.youkuaiyun.com/m0_73668892/article/details/132382201</guid><author>m0_73668892</author><pubDate>Sat, 19 Aug 2023 17:34:39 +0800</pubDate><description><![CDATA[函数重载
函数名相同，参数类型或个数不同。
返回值类型不可做区分依据！！！！
形参类型int和const int也不可做区分依据，但是int和int&可以。]]></description><category></category></item><item><title><![CDATA[c++类继承 和 using引用基类成员]]></title><link>https://blog.youkuaiyun.com/m0_73668892/article/details/132368299</link><guid>https://blog.youkuaiyun.com/m0_73668892/article/details/132368299</guid><author>m0_73668892</author><pubDate>Fri, 18 Aug 2023 21:34:10 +0800</pubDate><description><![CDATA[父类的保护成员 继承为 子类的保护成员，父类的公有成员 继承为 子类的公有成员，可以直接访问。含义：将基类的某保护或公有成员声明为本派生类此part（private/protected/public）的成员，不管。如下可看到，继承，就是派生类继承了基类的全部成员，且可在此基础上扩充（指f1函数）。派生类的using不能作用于基类的私有成员，因为不可见~除了父类的private成员不可见，其他都继承为保护成员，对外界不可见。默认行为，除了父类的private成员不可见，其他都继承为私有成员。]]></description><category></category></item><item><title><![CDATA[智能指针shared_ptr类的简单实现]]></title><link>https://blog.youkuaiyun.com/m0_73668892/article/details/132306857</link><guid>https://blog.youkuaiyun.com/m0_73668892/article/details/132306857</guid><author>m0_73668892</author><pubDate>Tue, 15 Aug 2023 21:03:41 +0800</pubDate><description><![CDATA[vs2019 clang编译器。]]></description><category></category></item><item><title><![CDATA[error: dereferencing pointer to incomplete type ‘struct task_struct’ current-＞thread.addr_limit =]]></title><link>https://blog.youkuaiyun.com/m0_73668892/article/details/128165288</link><guid>https://blog.youkuaiyun.com/m0_73668892/article/details/128165288</guid><author>m0_73668892</author><pubDate>Sat, 03 Dec 2022 19:37:00 +0800</pubDate><description><![CDATA[./arch/x86/include/asm/uaccess.h: In function ‘set_fs’:
./arch/x86/include/asm/uaccess.h:32:9:error: dereferencing pointer to incomplete type ‘struct task_struct’
 current->thread.addr_limit = fs;
检查是否将sched.h声明放在uaccess.h前面]]></description><category></category></item><item><title><![CDATA[initialization from incompatible pointer type [-Werror=incompatible-pointer-types]]]></title><link>https://blog.youkuaiyun.com/m0_73668892/article/details/127167895</link><guid>https://blog.youkuaiyun.com/m0_73668892/article/details/127167895</guid><author>m0_73668892</author><pubDate>Tue, 04 Oct 2022 23:38:03 +0800</pubDate><description><![CDATA[initialization from incompatible pointer type [-Werror=incompatible-pointer-types]意思是指针类型不兼容。]]></description><category></category></item></channel></rss>