随笔分类 -  Cpp programming

CPlusPlus programming language
摘要:// Gold.h : 此文件包含 "Gold" 类。 Builder Pattern C++ 14 // Jewelry Builder Pattern 生成器模式 建造者模式、Builder // 2023年5月1日 涂聚文 Geovin Du Visual Studio 2022 edit. 阅读全文
posted @ 2023-05-03 00:38 ®Geovin Du Dream Park™ 阅读(26) 评论(0) 推荐(0)
摘要:// Gold.h : 此文件包含 "Gold" 类。原型模式 Prototype Pattern C++ 14 // 2023年5月1日 涂聚文 Geovin Du Visual Studio 2022 edit. #pragma once #ifndef GOLD_H #define GOLD_ 阅读全文
posted @ 2023-05-02 18:34 ®Geovin Du Dream Park™ 阅读(23) 评论(0) 推荐(0)
摘要:// Gold.h : 此文件包含 "Gold" 类。Abstract Factory Pattern C++ 14 // 2023年4月30日 涂聚文 Geovin Du Visual Studio 2022 edit. #pragma once #ifndef GOLD_H #define GO 阅读全文
posted @ 2023-05-02 12:04 ®Geovin Du Dream Park™ 阅读(16) 评论(0) 推荐(0)
摘要:// Monster.h : 此文件包含 "Monster" 类。Abstract Factory Pattern C++ 14 // 2023年4月29日 涂聚文 Geovin Du Visual Studio 2022 edit. #pragma once #ifndef MONSTER_H # 阅读全文
posted @ 2023-04-30 20:27 ®Geovin Du Dream Park™ 阅读(28) 评论(0) 推荐(0)
摘要:文章来源《C++新经典设计模式》 王健伟编著 清华大学出版社 // TemplateMethonPattern.h : 此文件包含 "TemplateMethonPattern" 类。Template Mothod Pattern C++ 14 // 2023年4月29日 涂聚文 Geovin Du 阅读全文
posted @ 2023-04-29 21:24 ®Geovin Du Dream Park™ 阅读(28) 评论(0) 推荐(0)
摘要:win10 64位* 控程台936,程序文件UTF-8,输入可以获得中文字,输出中文没有问题(需要转码),保存的text文件编码utf-8 (需要转码)* 控程台65001 程序文件utf-8 输入中文获得是乱码,输出中文没有问题(需要代码设置),保存的text文件编码utf-8(需要转码)* 控制 阅读全文
posted @ 2023-04-24 20:54 ®Geovin Du Dream Park™ 阅读(289) 评论(0) 推荐(0)
摘要:叮𪠽𪠽𪀋𪀋𪀋𪠽 /*****************************************************************//** * \file geovindu.h * \brief 业务操作方法 * * \author geovindu,Geovin Du 阅读全文
posted @ 2023-04-22 20:51 ®Geovin Du Dream Park™ 阅读(81) 评论(0) 推荐(0)
摘要:VS 2022 C++有两种注释方法,一种C++的,还有一种和C#差不多。 读写文件有生成有报错,文件头行加上这行代码 #define _CRT_SECURE_NO_WARNINGS 自定义数据结构数组指针,类对象指针,不熟,瞎摸象,我不知道赋值,调用...... /**************** 阅读全文
posted @ 2023-04-22 00:31 ®Geovin Du Dream Park™ 阅读(47) 评论(0) 推荐(0)
摘要:// StudentArry.h : 此文件包含 "StudentArry" 类。学生数组成绩显示方法 C++ 14 // 2023年4月9日 涂聚文 Geovin Du edit. //(1)vec1.size() 就是”二维数组”的行数 //(2)vec1[0].size() 就是”二维数组”的 阅读全文
posted @ 2023-04-18 23:22 ®Geovin Du Dream Park™ 阅读(38) 评论(0) 推荐(0)
摘要:// StudentArry.cpp : //练习案例:学生数组成绩显示方法 StudentArry //案例描述:学生数组成绩显示方法 #include "StudentArry.h" #include <iostream> #include <string> #include <vector> 阅读全文
posted @ 2023-04-17 00:43 ®Geovin Du Dream Park™ 阅读(36) 评论(0) 推荐(0)
摘要:lib /def:sqlite3.def /machine:ix86 如果程序文件编码是ANSI时还需要解决中文读写乱码问题 sqlite3* sql = NULL; // 一个打开的数据库实例 const char* path = "geovindu";//某个sql文件的路径 // 根据文件路径 阅读全文
posted @ 2023-04-15 13:24 ®Geovin Du Dream Park™ 阅读(44) 评论(0) 推荐(0)
摘要:// NarcissisticInfo.h : //练习案例:水仙花数 100 - 1000 NarcissisticNumber //案例描述:水仙花数是指一个 3 位数,它的每个位上的数字的 3次幂之和等于它本身 //例如:1 ^ 3 + 5 ^ 3 + 3 ^ 3 = 153 //请利用do. 阅读全文
posted @ 2023-04-13 17:10 ®Geovin Du Dream Park™ 阅读(32) 评论(0) 推荐(0)
摘要:// CSVfilemanagement.h : //练习案例:CSV 文件读写 // // 2023年4月5日 涂聚文 Geovin Du edit. // https://www.digitalocean.com/community/tutorials/getline-in-c-plus-plu 阅读全文
posted @ 2023-04-11 19:55 ®Geovin Du Dream Park™ 阅读(62) 评论(0) 推荐(0)
摘要:// NarcissisticList.h : //练习案例:水仙花数 100 - 1000 NarcissisticList //案例描述:水仙花数是指一个 3 位数,它的每个位上的数字的 3次幂之和等于它本身 //例如:1 ^ 3 + 5 ^ 3 + 3 ^ 3 = 153 //请利用do... 阅读全文
posted @ 2023-04-11 00:31 ®Geovin Du Dream Park™ 阅读(33) 评论(0) 推荐(0)
摘要:// CardinalDirection.h : //练习案例:九九乘法表位置 CardinalDirection //案例描述:九九乘法表位置 // //2023年4月5日 涂聚文 Geovin Du edit. // #pragma once #ifndef CARDINALDIRECTION_ 阅读全文
posted @ 2023-04-11 00:26 ®Geovin Du Dream Park™ 阅读(49) 评论(0) 推荐(0)
摘要:// RandomlySampled.h : 此文件包含 "RandomlySampled" 类。十个常用排序算法 C++ 11 // 2023年4月9日 涂聚文 Geovin Du edit. #pragma once #ifndef RANDOMLYSAMPLED_H #define RANDO 阅读全文
posted @ 2023-04-09 15:33 ®Geovin Du Dream Park™ 阅读(39) 评论(0) 推荐(0)
摘要:按住 Ctrl+Shift+Alt+/ (不够快捷的快捷键...)选中Registry...(用于CLion 2022.3.2版本) 然后取消run.processes.with.pty 叮噹 The Unicode Standard, Version 15.0 https://unicode.or 阅读全文
posted @ 2023-04-05 22:59 ®Geovin Du Dream Park™ 阅读(276) 评论(0) 推荐(0)
摘要:vs 2022 C++语言注释插件: Doxygen Comments https://marketplace.visualstudio.com/items?itemName=FinnGegenmantel.doxygenComments // TenSortAlgorithms.h : 此文件包含 阅读全文
posted @ 2023-04-05 21:32 ®Geovin Du Dream Park™ 阅读(27) 评论(0) 推荐(0)
摘要:PigInfo.h #ifndef PIGINFO_H #define PIGINFO_H #include <iostream> #include<string.h> #include<math.h> using namespace std; /* 实体类 https://learn.micros 阅读全文
posted @ 2023-04-04 22:39 ®Geovin Du Dream Park™ 阅读(21) 评论(0) 推荐(0)
摘要:PigInfo.h #ifndef PIGINFO_H #define PIGINFO_H #include <iostream> #include<string.h> #include<math.h> using namespace std; /* 实体类 https://learn.micros 阅读全文
posted @ 2023-04-04 20:15 ®Geovin Du Dream Park™ 阅读(22) 评论(0) 推荐(0)