摘要: // Demo_3_Show_PointCloud.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // 功能:显示简单的三维坐标点集 #include <iostream> #include "vtkPoints.h" #include "vtkPolyData.h" # 阅读全文
posted @ 2021-07-20 10:32 iwetuan 阅读(224) 评论(0) 推荐(0)
摘要: // Demo_3_Show_PointCloud.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // 功能:显示简单的三维坐标点集 #include <iostream> #include "vtkPoints.h" #include "vtkPolyData.h" # 阅读全文
posted @ 2021-07-14 16:21 iwetuan 阅读(1378) 评论(0) 推荐(0)
摘要: #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)
摘要: // 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)
摘要: 为什么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++继承构造.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)
摘要: // 设计模式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)
摘要: // 设计模式1工厂模式.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 //https://www.runoob.com/design-pattern/factory-pattern.html //在工厂模式中,我们在创建对象时不会对客户端暴露创建逻辑,并且是通过使用一个 阅读全文
posted @ 2021-02-19 10:55 iwetuan 阅读(55) 评论(0) 推荐(0)
摘要: // ConsoleApplication25单例.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include <iostream> //#include <iostream> //singleton //单例方法,实现单例的测试程序 class Ca { pu 阅读全文
posted @ 2021-02-18 18:53 iwetuan 阅读(66) 评论(0) 推荐(0)
摘要: 从下面的例子可以大概看出来, 编译器处理模板的时候,只看模板的名称, 不关注模板的继承和实现 #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)