CPP

cpp: Proxy Pattern

/*****************************************************************//** * \file GoldWebSite.h * \brief 代理模式 ProxyPattern C++ 14 * 2023年5月31日 涂聚文 Geovin ......
Pattern Proxy cpp

cpp: Flyweight Pattern

/*****************************************************************//** * \file ChineseChess.h * \brief 享元模式 Flyweight Pattern 亦称: 缓存、Cache、Flyweight C ......
Flyweight Pattern cpp

vscode配置单个cpp文件打断点的文件

(51条消息) 【工具】VScode设置断点调试(以cpp为例)_vdcode运行断点 cpp_沙diao网友的博客-CSDN博客 launch.json内容 { // Use IntelliSense to learn about possible attributes. // Hover to ......
文件 单个 vscode cpp

cpp: State Pattern

/*****************************************************************//** * \file Gold.h * \brief State Pattern 状态模式 C++ 14 * 2023年5月29日 涂聚文 Geovin Du Vi ......
Pattern State cpp

cpp: Composite Pattern

/*****************************************************************//** * \file GoldDir.h * \brief 组合模式CompositePattern 亦称: 对象树、Object Tree、Composite c ......
Composite Pattern cpp

cpp: Iterator Pattern

/*****************************************************************//** * \file GoldIterator.h * \brief 迭代器模式 Iterator Pattern * 2023年5月22日 涂聚文 Geovin ......
Iterator Pattern cpp

cpp: Command Pattern

/*****************************************************************//** * \file Gold.h * \brief Command Pattern 命令模式 亦称:动作、事务、Action、Transaction、Comman ......
Command Pattern cpp

【CPP0049】以Point类及平面基类Plane类为基础设计圆类Circle并实现相关文件操作

基于Point类及平面基类Plane类,设计圆类Circle,并为Point类和Circle重载实现<<和>>运算符,main(void)函数实现Point对象和Circle对象的文件读写操作。@ Point类结构说明: Point类的数据成员包括: ①私有数据成员:X坐标x(double型),Y坐 ......
平面 文件 基础 Circle Point

pta_【CPP0038】单向链表模板类

#include <iostream>using namespace std; template <typename T>class Node{public: Node(T data) : data(data), next(nullptr) { cout << "Node Constructor r ......
单向 模板 0038 pta CPP

【CPP0048】复数类四则运算及插入/提取操作

为复数类Complex重载实现+,-,*,/,<<,>>等运算符,main(void)函数完成对其的测试。@ Complex类结构说明: Complex类的数据成员包括: ①私有数据成员:实部real(double型),虚部imag(double型)。 Complex类成员函数包括: ①有参构造函数 ......
四则 复数 0048 CPP

pta_【CPP0040】list应用测试

#include<iostream>#include<list>#include<algorithm>using namespace std;int main(){ int i,a[10],b; for(i=0; i<10; i++){ scanf("%d",&a[i]); } scanf("%d" ......
0040 list pta CPP

【CPP0040】list应用测试

应用STL中的list完成功能测试。 设计要求: 定义一个空的list,将用户输入的数组a[10]的10个数插入到list中,在list头部插入数b,用迭代器遍历list并输出其中的元素值。然后将list从大到小排序,删除list尾部的元素,用迭代器遍历list并输出其中的元素值。最后将list清空 ......
0040 list CPP

cpp: point

int arr[3][4] = { {14,2,3,14},{14,5,6,7} ,{18,9,10,11} }; int* p; p = arr[0]; for (int i = 0; i < sizeof(arr) / sizeof(int); i++) { cout <<"\t"<< &arr ......
point cpp

cpp: Facade Pattern

/*****************************************************************//** * \file GoldGraphic.h * \brief Facade Pattern 外观模式 * 涂聚文 Geovin Du Visual Studi ......
Pattern Facade cpp

cpp: Singleton Pattern

// GoldConfig.h: 此文件包含 "GoldConfig" 类。装饰器模式 Singleton Pattern C++ 14 // //Singleton Pattern 单例模式 单件模式、Singleton // 2023年5月20日 涂聚文 Geovin Du Visual Stu ......
Singleton Pattern cpp

cpp: two cups waters

/*****************************************************************//** * \file TwoCupsOfWaters.h * \brief * 平衡数的定义:将一个数分成左右两部分,分别成为2个新数。左右不分必须满足: * 1、 ......
waters cups cpp two

pta_【CPP0039】vector应用测试

#include<iostream>#include<vector>#include<algorithm>using namespace std;int main(void){ int i,a[10],b; for(i=0; i<10; i++){ scanf("%d",&a[i]); } scan ......
vector 0039 pta CPP

pta_【CPP0036】利用函数模板解决双倍功能

#include <iostream>using namespace std; template <typename T>T Double(T num){ return 2.0 * num;} int main(void){ char c='\0'; int i=0; long l=0; scanf ......
双倍 函数 模板 功能 0036

学生CPP成绩计算

一、问题描述。 计算学生的CPP成绩 二、设计思路。 定义下面的人员基类框架: class Person{ protected: string name; int age; public: Person(); Person (string p_name, int p_age); void displ ......
成绩 学生 CPP

学生CPP成绩计算

学生CPP成绩计算 给出下面的人员基类框架: class Person { protected: string name; int age; public: Person(); Person (string p_name, int p_age); void display () {cout<<nam ......
成绩 学生 CPP

cpp: Struct Simple

// DuStudent.h : 此文件包含 "DuStudent" 类。策略模式 Strategy Pattern C++ 14 // 2023年5月1日 涂聚文 Geovin Du Visual Studio 2022 edit. #pragma once #ifndef DUSTUDENT_H ......
Struct Simple cpp

pta_【CPP0027】以圆类Circle及立体图形类Solid为基础设计球类Sphere

#include <iostream>using namespace std;//点类Pointclass Point{private: double x; double y;public: Point(double xv=0,double yv=0);/*构造函数*/ Point(const Po ......
球类 立体 图形 基础 Circle

cpp: 内存地址

在 Visual Studio 调试器中使用“内存”窗口(C#、C++、Visual Basic、F#) 在调试器中查看变量的内存 - Visual Studio (Windows) | Microsoft Learn int a = 10; char b; bool c; string d; co ......
内存 地址 cpp

pta_【CPP0026】以点类Point及平面图形类Plane为基础设计三角形类Triangle

#include <iostream>#include<cmath>using namespace std;//点类Pointclass Point{private: double x; double y;public: Point(double xv=0,double yv=0);/*构造函数*/ ......
三角形 Triangle 图形 平面 基础

6-4 【CPP0026】以点类Point及平面图形类Plane为基础设计三角形类Triangle

6-4 【CPP0026】以点类Point及平面图形类Plane为基础设计三角形类Triangle 分数 10 作者 C++多态编程 单位 石家庄铁道大学 以平面图形类Plane为基类公有派生三角形类Triangle,main(void)函数完成对其的测试。 Point类结构说明: Point类的数 ......
三角形 Triangle 图形 平面 基础

cpp: Strategy Pattern II

// Gold.h : 此文件包含 "Gold" 类。策略模式 Strategy Pattern C++ 14 // 2023年5月1日 涂聚文 Geovin Du Visual Studio 2022 edit. #pragma once //#ifndef GOLD_H //#define GO ......
Strategy Pattern cpp II

cpp: Strategy Pattern

// Gold.h : 此文件包含 "Gold" 类。策略模式 Strategy Pattern C++ 14 // 2023年5月1日 涂聚文 Geovin Du Visual Studio 2022 edit. #pragma once //#ifndef GOLD_H //#define GO ......
Strategy Pattern cpp

pta_【CPP0024】设计并实现大数类BigNum

#include <iostream>using namespace std;#define N 100 #include<cstring> class BigNum{private: char num[N];public: BigNum(char c[N] = "+0") { int i,j,a ......
大数 BigNum 0024 pta CPP

极速进化,光速转录,C++版本人工智能实时语音转文字(字幕/语音识别)Whisper.cpp实践

业界良心OpenAI开源的Whisper模型是开源语音转文字领域的执牛耳者,白璧微瑕之处在于无法通过苹果M芯片优化转录效率,Whisper.cpp 则是 Whisper 模型的 C/C++ 移植版本,它具有无依赖项、内存使用量低等特点,重要的是增加了 Core ML 支持,完美适配苹果M系列芯片。 ......
语音 人工智能 光速 字幕 实时

cpp: Builder Pattern

// Gold.h : 此文件包含 "Gold" 类。原型模式 Builder Pattern C++ 14 // Jewelry Builder Pattern 生成器模式 建造者模式、Builder // 2023年5月1日 涂聚文 Geovin Du Visual Studio 2022 ed ......
Builder Pattern cpp