1 Star 0 Fork 5

注意颈椎歇会靠着坐多喝水/learnOSG

forked from dcxcn/learnOSG 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
share2.cpp 899 Bytes
一键复制 编辑 原始数据 按行查看 历史
JunhuiLee 提交于 2020-03-02 20:07 +08:00 . 更新
//#include <QDebug>
//#include <QMap>
//#include <osg/Referenced>
//#include <osg/ref_ptr>
//#include <osg/observer_ptr>
//#include <iostream>
//#include <vld.h>
//class A : public osg::Referenced
//{
//public:
// A():a(new double[5])
// {
// a[0] = 1;
// a[1] = 2;
// }
// A(const A &other)
// {
// a = new double[5];
// for(int i = 0; i < 5; i++)
// a[i] = other.a[i];
// }
// A& operator=(const A &other)
// {
// for(int i = 0; i < 5; i++)
// a[i] = other.a[i];
// return *this;
// }
// ~A()
// {
// delete []a;
// qDebug() << "delete";
// }
// double *a;
//};
//class B
//{
//public:
// osg::observer_ptr<A> a;
//};
//int main()
//{
// osg::ref_ptr<A> b = new A;
// B aa;
// aa.a = b.get();
// b = nullptr;
//// a.clear();
// qDebug() << "main";
//}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/fbing2015/learnOSG.git
git@gitee.com:fbing2015/learnOSG.git
fbing2015
learnOSG
learnOSG
master

搜索帮助