会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
iwetuan
博客园
管理
上一页
1
2
3
4
5
6
7
下一页
2021年7月20日
vtksample
摘要: // Demo_3_Show_PointCloud.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // 功能:显示简单的三维坐标点集 #include <iostream> #include "vtkPoints.h" #include "vtkPolyData.h" #
阅读全文
posted @ 2021-07-20 10:32 iwetuan
阅读(224)
评论(0)
推荐(0)
2021年7月14日
vtk后处理显示颜色
摘要: // Demo_3_Show_PointCloud.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // 功能:显示简单的三维坐标点集 #include <iostream> #include "vtkPoints.h" #include "vtkPolyData.h" #
阅读全文
posted @ 2021-07-14 16:21 iwetuan
阅读(1378)
评论(0)
推荐(0)
2021年6月29日
c++ 成员函数指针的应用测试
摘要: #include <string> #include <vector> #include <algorithm> #include <iostream> #include <functional> using namespace std; struct Memfn{ Memfn(string s):
阅读全文
posted @ 2021-06-29 22:38 iwetuan
阅读(47)
评论(0)
推荐(0)
2021年6月22日
c++ mktime和时间秒数的理解
摘要: // ConsoleApplication7.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include <chrono> #include <iostream> using namespace std; //判断平年和闰年的方法 int days(in
阅读全文
posted @ 2021-06-22 03:25 iwetuan
阅读(568)
评论(0)
推荐(0)
2021年2月24日
为什么C++的空类的size不能为0
摘要: 为什么C++的空类的size不能为0 Why is the size of an empty class not zero? To ensure that the addresses of two different objects will be different. For the same r
阅读全文
posted @ 2021-02-24 18:28 iwetuan
阅读(87)
评论(0)
推荐(0)
C++11的继承构造
摘要: // C++继承构造.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 //VS2017社区版 #include <iostream> struct Base { Base(int, int) { std::cout << "Base(int, int)" << std::e
阅读全文
posted @ 2021-02-24 18:21 iwetuan
阅读(51)
评论(0)
推荐(0)
2021年2月19日
23个设计模式之2-抽象工厂模式
摘要: // 设计模式2-抽象工厂模式.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 //https://www.runoob.com/design-pattern/abstract-factory-pattern.html 抽象工厂模式(Abstract Factory Pat
阅读全文
posted @ 2021-02-19 19:16 iwetuan
阅读(70)
评论(0)
推荐(0)
23个设计模式1-工厂模式
摘要: // 设计模式1工厂模式.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 //https://www.runoob.com/design-pattern/factory-pattern.html //在工厂模式中,我们在创建对象时不会对客户端暴露创建逻辑,并且是通过使用一个
阅读全文
posted @ 2021-02-19 10:55 iwetuan
阅读(55)
评论(0)
推荐(0)
2021年2月18日
设计模式-C++设计单例
摘要: // ConsoleApplication25单例.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include <iostream> //#include <iostream> //singleton //单例方法,实现单例的测试程序 class Ca { pu
阅读全文
posted @ 2021-02-18 18:53 iwetuan
阅读(66)
评论(0)
推荐(0)
2021年2月2日
特化模板还可以改变继承关系
摘要: 从下面的例子可以大概看出来, 编译器处理模板的时候,只看模板的名称, 不关注模板的继承和实现 #include <iostream> struct Ca {}; struct Cb {}; template<typename t,typename t2=void> struct Cc :Ca { C
阅读全文
posted @ 2021-02-02 12:13 iwetuan
阅读(159)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
下一页