C++课程期末复习全集

id:192 最贵的两本书

#include<iostream>
#include<string>
#include<iomanip>
//#include <bits/stdc++.h>
#define ll long long
#define pii pair<int, int>
#define pb push back
#define sedgcd
#define len(a,b)(a* b)/ ged(a, b)
#define all(a) a. beginO. a. end()
#define men(a, x)menset(a, x sizeof(a))
#define f(i,s,e)for(inti=s:i<=e; i++)
#define ff(i,s,e)for(intis;i>e;i-)
#define setbits(x)builtin_popcount(x)
#define zrobits(x)builtin_ctzll(x)
#define mad 1000000007
#define maxn(ll)(2e5 + 5000)
#define INF LONG LONG MAX
using namespace std;
class Book {
public:
	string name;
	string author;
	double price;
	string publisher;

	Book(string n, string a, double p, string d) {
		name = n;
		author = a;
		price = p;
		publisher = d;
	}
	friend void find(Book* book, int n, int& max1index, int& max2index);//参数使用引用,实参会发生跟形参一样的变化
	Book() :name(""), author(" "), price(0.0), publisher(" "){ }
	friend istream& operator>>(istream& is, Book& book); 
	friend ostream& operator<<(ostream& os, const Book& book);
};
void find(Book* book, int n, int& max1index, int& max2index) {  //函数类型为不返回就得用引用
	if (n == 0)
		return;
	max1index = 0;
	max2index = n>1?1:0;
	if (n > 1 && book[1].price > book[0].price)
	{
		max1index = 1;
		max2index = 0;
	}
	for (int i = 2; i < n; i++) {
		if (book[i].price > book[max1index].price) {
			max2index = max1index;
			max1index = i;
		}
		else if (book[i].price > book[max2index].price) {
			max2index = i;
		}
	}

}
istream& operator>>(istream& is,Book& book) {
	string pricestr;
	getline(is, book.name, ',');
	getline(is, book.author, ',');
	getline(is,pricestr, ',');
	book.price = stod(pricestr);
	getline(is, book.publisher);
	return is;
}
ostream& operator<<(ostream& os, const Book& book) {
	os << book.name << "\n";
	os << book.author << "\n";
	os << fixed << setprecision(2) << book.price << "\n";
	os << book.publisher;
	return os;
}

int main() {
	int t;
	cin >> t;
	string name, author, address;
	double price;
	for(int i=0;i<t;i++) {
		int n;
		cin >> n;
		Book* book = new Book[n];
		for (int j = 0; j < n; j++) {
			cin >> book[j];
		}
		int max1index, max2index;
		find(book, n, max1index, max2index);
		cout << book[max1index] << endl;
		cout << endl;
		cout << book[max2index] << endl;
		delete[]book;
	}
	return 0;
}

id:128 加密模板

#include<iostream>
using namespace std;
template<class T>
T max(T a[], int n) {
	T max = a[0];
	for (int i = 1; i < n; i++) {
		if (a[i] > max) {
			max = a[i];
		}
	}
	return max;
}

template<class T>
class Cryption
{
private:
	T ptxt[100]; //明文
	T ctxt[100]; //密文
	T key; //密钥
	int len; //长度
public:
	Cryption(T ttk, T tt[], int n) //参数依次对应密钥、明文、长度
	{
		 
			for (int i = 0; i < n; i++) {
				ptxt[i] = tt[i];

			}
			key = ttk;
			len = n;
		
	}
	void encrypt()//加密
	{
		T max1 = max(ptxt, len);
		for (int i = 0; i < len; i++) {
			ctxt[i] = max1 - ptxt[i] + key;
		}
	}
	void print() //打印,无需改造
	{
		int i;
		for (i = 0; i < len - 1; i++)
		{
			cout << ctxt[i] << " ";
		}
		cout << ctxt[i] << endl;
	}
};

//支持三种类型的主函数
int main()
{
	int i;
	int length; //长度
	int ik, itxt[100];
	double dk, dtxt[100];
	char ck, ctxt[100];
	//整数加密
	cin >> ik >> length;
	for (i = 0; i < length; i++)
	{
		cin >> itxt[i];
	}
	Cryption<int> ic(ik, itxt, length);//显式实例化
	ic.encrypt();
	ic.print();
	//浮点数加密
	cin >> dk >> length;
	for (i = 0; i < length; i++)
	{
		cin >> dtxt[i];
	}
	Cryption<double> dc(dk, dtxt, length);//显式实例化
	dc.encrypt();
	dc.print();
	//字符加密
	cin >> ck >> length;
	for (i = 0; i < length; i++)
	{
		cin >> ctxt[i];
	}
	Cryption<char> cc(ck, ctxt, length);//显式实例化
	cc.encrypt();
	cc.print();

	return 0;
}

id:127 加湿风扇

#include<iostream>
using namespace std;
class Appliance {//电器
protected:
	int num;//编号
	int pp;//功率
	
public:
	Appliance(){}
	Appliance(int n, int p) { num = n; pp = p; }
	void display() {
		cout << "编号" << num << "--功率" << pp << "W" << endl;
	}
};
class Fan:virtual public Appliance {//风扇
protected:
	int direction;//风向   0定向  1 旋转
	int size;//风力
public:
	Fan(int n, int p, int d, int s) :Appliance(n, p) { direction = d; size = s; }
	void setsize(int s) {
		size = s;
	}
	void setdirection(int d) {
		direction = d;
	}

	 
};
class Humidifier :virtual public Appliance {  //加湿器
protected:
	float waternum;//水位实际值
	float watermax;//水位最大值
public:
	Humidifier(int n,int p,float wn,float wm):Appliance(n,p)
	{
		waternum = wn;
		watermax = wm;
	}
	int alarm() {
		if (waternum >= watermax * 0.5)
			return 1;
		else if (waternum <= watermax * 0.5 && waternum >= watermax * 0.1)
			return 2;
		else
			return 3;
	}

};
class HF :public Humidifier, public Fan {//加湿风扇
protected:
	int gear;//档位
public:
	HF(int n,int p,float wn, float wm, int direction, int size, int g) :Appliance(n,p),Humidifier(n,p,wn, wm), Fan(n,p,direction, size) {
		gear = g;
	}
	void setgear(int n) {
		gear = n;
		if (n == 1) {
			setdirection (0);
			setsize (1);
		}
		else if (n == 2) {
			setsize (2);
			setdirection (1);
		}
		else if (n == 3) {
			setdirection (1);
			setsize (3);
		}
	}
	void display() {

		cout << "加湿风扇--档位" << gear << endl;
		cout << "编号" << num << "--功率" << pp << "W" << endl;
		
		if (direction == 0)
			cout << "定向吹风";
		else
			cout << "旋转吹风";
		cout << "--风力" << size << "级" << endl; ;
		cout << "实际水容量" << waternum << "升--";
		switch (alarm()) {
		case 1: {
			cout << "水量正常" << endl;
			break;
		}
		case 2: {
			cout << "水量偏低" << endl;
			break;
		}
		case 3: {
			cout << "水量不足" << endl;
			break;
			}
		}
	}
}; 
int main()
{
	int t;
	cin >> t;
	while (t--) {
		int num, pp, direction, size, gear,gear0;
		float waternum, watermax;
		cin >> num >> pp >> direction >> size >> waternum >> watermax>>gear;
		cin >> gear0;
		HF fh(num,pp,waternum,watermax,direction,size,gear);
		
		fh.setgear(gear0);
		fh.display();
	}
}

id:128 计重转换

#include<iostream>
using namespace std;
class CN; //提前声明
class EN; //提前声明

// 抽象类
class Weight
{
protected:
	char kind[20]; //计重类型
	int gram; // 克
public:
	Weight(const char tk[] = "no name", int tg = 0)
	{
		int h = sizeof(tk);
		for (int i = 0; i < h; i++) {
			kind[i] = tk[i];
		}
		gram = tg;
	}
	virtual void print(ostream& out) = 0; // 输出不同类型的计重信息  纯虚函数
};

// 中国计重
class CN : public Weight
{
private:
	int jin, liang, qian;
public:
	CN(int i, int j, int k, int l, const char a[]) :Weight(a, l) {
		jin = i;
		liang = j;
		qian = k;

	}
	void Convert(int k) {
		gram = k % 5;
		jin = k / 500;
		liang = k % 500 / 50;
		qian = k % 50 / 5;
	}
	virtual void print(ostream& out) {
		out << "中国计重:" << jin << "斤" << liang << "两" << qian << "钱" << gram << "克" << endl;
	}

	CN& operator=(EN& e1);
};

// 英国计重
class EN : public Weight
{
private:
	int bang, angsi, dalan;
public:
	EN(int i, int j, int k, int l,const char a[]) :Weight(a, l) {
		bang = i;
		angsi = j;
		dalan = k;
	}
	void Convert(int k) {
		gram = k % 2;	
		bang = k / 512;
		angsi = k % 512 / 32;
		dalan = k % 512 % 32 / 2;
	}
	int getGram() {
		return gram + bang * 512 + angsi * 32 + dalan * 2;
	}
	virtual void print(ostream& out) {
		out << "英国计重:" << bang << "磅" << angsi << "盎司" << dalan << "打兰" << gram << "克" << endl;
	}
};
CN& CN::operator=(EN& e1) {
	int all_gram;
	all_gram = e1.getGram();
	this->Convert(all_gram);
	return *this;
}
ostream& operator<<(ostream& out, Weight& W1) {
	W1.print(out);
	return out;
}
// 以全局函数方式重载输出运算符,代码3-5行....自行编写
// 重载函数包含两个参数:ostream流对象、Weight类对象,参数可以是对象或对象引用
// 重载函数必须调用参数Weight对象的print方法

// 主函数
int main()
{
	int tw;
	// 创建一个中国计重类对象cn
	// 构造参数对应斤、两、钱、克、类型,其中克和类型是对应基类属性gram和kind
	CN cn(0, 0, 0, 0, "中国计重");
	cin >> tw;
	cn.Convert(tw); // 把输入的克数转成中国计重
	cout << cn;

	// 创建英国计重类对象en
	// 构造参数对应磅、盎司、打兰、克、类型,其中克和类型是对应基类属性gram和kind
	EN en(0, 0, 0, 0, "英国计重");
	cin >> tw;
	en.Convert(tw); // 把输入的克数转成英国计重
	cout << en;
	cn = en; // 把英国计重转成中国计重
	cout << cn;
	return 0;
}

id:187 集合运算(运算符重载)

#include<iostream>
using namespace std;
class CSet
{
public:
	int* data;
	int n;
public:
	CSet operator+(CSet& s);
	CSet operator-(CSet& s);
	CSet operator*(CSet& s);
	CSet();
	CSet(int* p, int x);
	void setdata(int* p, int x);
	void display();
};
CSet::CSet(int* p, int x)
{
	data = p; n = x;
}
CSet::CSet()
{
	int x;
	cin >> x;
	n = x;
	data = new int[n];
	for (int i = 0; i < n; i++)
	{
		cin >> *(data + i);
	}
}
void CSet::display()
{
	if (n == 1) { cout << data[0]; }
	else {
		
			for (int i = 0; i < n - 1; i++)
			{

				cout << *(data + i) << " ";
			}

			cout << *(data + n-1);
		}
}
CSet CSet::operator*(CSet& s)
{
	int* p = new int[n + s.n];
	int sum = 0;
	for (int i = 0; i < n; i++)
	{
		for (int j = 0; j < s.n; j++)
		{
			if (s.data[j] == data[i])
			{
				p[sum] = data[i];
				sum++;
				break;
			}
		}
	}
	CSet m(p, sum);
	return m;
}
CSet CSet::operator-(CSet& s)
{
	int* p = new int[n + s.n]; int x = 0;
	for (int i = 0; i < n; i++)
	{
		int sum = 0;
		for (int j = 0; j < s.n; j++)
		{
			if (s.data[j] == data[i])
				sum++;
		}
		if (sum == 0)//属于A而不属于B
		{
			p[x] = data[i];
			x++;
		}
	}
	CSet m(p, x);
	return m;
}
CSet CSet::operator+(CSet& s)
{
	int* p = new int[n + s.n];
	int x = s.n + n;
	for (int i = 0; i < n; i++)
	{
		*(p + i) = *(data + i);
	}
	for (int i = 0; i < s.n; i++)
	{
		*(p + n + i) = *(s.data + i);
	}
	for (int i = 0; i < x; i++)
		for (int j = 0; j < x; j++)
		{
			if (i != j)
			{
				if (*(p + i) == *(p + j))
				{
					for (int k = j; k < x; k++)
					{
						*(p + k) = *(p + k + 1);
					}
					x--;
				}
			}
		}
	CSet m(p, x);
	return m;
}
int main()
{
	int a; cin >> a;
	
	while(a--)
	{
		CSet A, B;
		CSet m = A - B, n = B - A;
		cout << "A:"; A.display(); cout << endl;
		cout << "B:"; B.display(); cout << endl;
		cout << "A+B:"; (A + B).display(); cout << endl;
		cout << "A*B:"; (A * B).display(); cout << endl;
		cout << "(A-B)+(B-A):"; (m + n).display();

		if (a != 0) {
			cout << endl; cout << endl;
		}
			
		
	}
	return 0;
}

id:181 宠物的生长(虚函数和多态)

#include<iostream>
#include<iomanip>
using namespace  std;
class CDate {
private:
	int year;
	int day;
	int month;
public:
	CDate(int y, int m, int d) {
		year = y;
		day = d;
		month = m;
	}
	CDate() {}
	int getsumofday() {
		int sum = day;
		int a[13] = { 0,31,28,31,30,31,30,31,31,30,31,30,31 };
		if ((year % 100 != 0 && year % 4 == 0) || (year % 400 == 0))
			a[2]++;
		for (int i = 1; i < month; i++) {
			sum += a[i];
		}
		int days = sum + year * 365;
		for (int i = 1; i < year; i++) {
			if ((year % 100 != 0 && year % 4 == 0) || (year % 400 == 0))
				days += 1;
		}
		return days;
	}
};
class Pet {
protected:
	string name;//姓名
	float length;//身长
	float weight;//体重
	CDate current;//开始记录时间
public:
	Pet() {}
	Pet(string n, float l, float w, int y, int m, int d) :current(y, m, d)
	{
		name = n;
		length = l;
		weight = w;
	}
	virtual void disply(CDate day) = 0;//输出目标日期时宠物的身长和体重
};
class Cat :public Pet {
public:
	Cat() {}
	Cat(string n, float l, float w, int y, int m, int d) :Pet(n, l, w, y, m, d) { }
	virtual void disply(CDate day) {
		int d1 = day.getsumofday();
		int d2 = current.getsumofday();
		if (d1 > d2) {
			cout << "error" << endl;
		}
		else {
			int d = d2 - d1;
			length += d * 0.1;
			weight += d * 0.2;
			cout << name << "afer" << d << "days:" << "length=" << fixed << setprecision(2) << length << ",weight=" << weight << endl;
		}
	}
};
class Dog :public Pet {
public:
	Dog() {}
	Dog(string n, float l, float w, int y, int m, int d) :Pet(n, l, w, y, m, d) { }
	virtual void disply(CDate day) {
		int d1 = day.getsumofday();
		int d2 = current.getsumofday();
		if (d1 > d2) {
			cout << "error" << endl;
		}
		else {
			int d = d2 - d1;
			length += d * 0.2;
			weight += d * 0.1;
			cout << name << "afer" << d << "days:" << "length=" << fixed << setprecision(2) << length << ",weight=" << weight << endl;
		}
	}
};
int main() {
	int t;
	cin >> t;
	int y, m, d;
	cin >> y >> m >> d;
	CDate day(y, m, d);
	while (t--) {
		Pet* p = nullptr;
		int type;
		string n; float l, w;
		cin >> type >> n >> l >> w >> y >> m >> d;
		if (type == 1)
			p = new Cat(n, l, w, y, m, d);
		else
			p = new Dog(n, l, w, y, m, d);
		if (p)
			p->disply(day);
		delete p;

	}
	return 0;
}

id:300 OOP双人决斗(多重继承)

#include<iostream>
using namespace std;

class Node2D {
protected:
    string location;
public:
    Node2D(string l) : location(l) {}
};
class Body : virtual public Node2D {
protected:
    int maxhealth;
    int health;
    int defense;
public:
    Body(string l, int h, int d) : Node2D(l), maxhealth(h), health(h), defense(d) {}
};
class Weapon : virtual public Node2D {
protected:
    string name1;
    int damage;
public:
    Weapon(string l, string n, int d) : Node2D(l), name1(n), damage(d) {}
};
class Player : public Body, public Weapon {
protected:
    string name;
public:
    Player(string l, int h, int d, string n, int dd, string nn)
        : Node2D(l), Body(l, h, d), Weapon(l, n, dd), name(nn) {}
    void decrease(Player& other) {
        if (other.health > 0||health>0) {
            int damageDealt = damage - other.defense;
            damageDealt = damageDealt < 0 ? 0 : damageDealt;
            other.health -= damageDealt;
            cout << name << " deal " << damageDealt << " damage to " << other.name << endl;
            if(other.health > 0 && health > 0)
                 cout << other.name << " still have " << other.health << " health\n"<< endl;
        }
    }
    void attack(Player& other) {
        while (health > 0 && other.health > 0) {
            decrease(other);
            if (other.health <= 0) {
                cout << name << " defeated " <<other.name<< " by "<< name1 << " in "<< location <<endl;
                break;
            }
            other.decrease(*this);
            if (health <= 0) {
                cout << other.name << " defeated " << name << " by " << other.name1 << " in " << location;
                break;
            }
        }
    }
};

int main() {
    string place;
    cin >> place;
    string n1, n2, n3, n4;
    int health1, health2, defense1, defense2, damage1, damage2;

    cin >> n1 >> health1 >> defense1 >> n3 >> damage1;
    cin >> n2 >> health2 >> defense2 >> n4 >> damage2;

    Player p1(place, health1, defense1, n3, damage1, n1);
    Player p2(place, health2, defense2, n4, damage2, n2);

    p1.attack(p2);
    return 0;
}

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mfbz.cn/a/781319.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

《昇思 25 天学习打卡营第 11 天 | ResNet50 图像分类 》

《昇思 25 天学习打卡营第 11 天 | ResNet50 图像分类 》 活动地址&#xff1a;https://xihe.mindspore.cn/events/mindspore-training-camp 签名&#xff1a;Sam9029 计算机视觉-图像分类&#xff0c;很感兴趣 且今日精神颇佳&#xff0c;一个字&#xff0c;学啊 上一节&…

【数据结构】经典链表题目详解集合(反转链表、相交链表、链表的中间节点、回文链表)

文章目录 一、反转链表1、程序详解2、代码 二、相交链表1、程序详解2、代码 三、链表的中间节点1、程序详解2、代码 四、回文链表1、程序详解2、代码 一、反转链表 1、程序详解 题目&#xff1a;给定单链表的头节点 head &#xff0c;请反转链表&#xff0c;并返回反转后的链…

STM32实现硬件IIC通信(HAL库)

文章目录 一. 前言二. 关于IIC通信三. IIC通信过程四. STM32实现硬件IIC通信五. 关于硬件IIC的Bug 一. 前言 最近正在DIY一款智能电池&#xff0c;需要使用STM32F030F4P6和TI的电池管理芯片BQ40Z50进行SMBUS通信。SMBUS本质上就是IIC通信&#xff0c;项目用到STM32CubeMXHAL库…

基于ROS的智能网联车远程交互软件,全UI无需记忆指令,剑指核心原理。

基于ROS的智能网联车远程交互软件&#xff0c;全UI无需记忆指令&#xff0c;剑指核心原理。 服务于中汽恒泰&#xff0c;伟大的项目&#xff0c;希望看官点赞&#xff0c;谢谢~~ 进程&#xff08;节点&#xff09;列表化&#xff0c;参数面板化&#xff0c;实现快速机器人配置…

SpringMVC(2)——controller方法参数与html表单对应

controller方法参数与html表单对应 0. User实体类 import org.springframework.format.annotation.DateTimeFormat;import java.io.Serializable; import java.util.Date; import java.util.List; import java.util.Map;public class User implements Serializable {private …

CosyVoice - 阿里最新开源语音克隆、文本转语音项目 支持情感控制及粤语 本地一键整合包下载

近日&#xff0c;阿里通义实验室发布开源语音大模型项目FunAudioLLM&#xff0c;而且一次包含两个模型&#xff1a;SenseVoice和CosyVoice。 CosyVoice专注自然语音生成&#xff0c;支持多语言、音色和情感控制&#xff0c;支持中英日粤韩5种语言的生成&#xff0c;效果显著优于…

apk反编译修改教程系列-----修改apk 解除软件限制功能 实例操作步骤解析_3【二十二】

在前面的几期博文中有过解析去除apk中功能权限的反编译步骤。另外在以往博文中也列举了修改apk中选项功能权限的操作方法。今天以另外一款apk作为演示修改反编译去除软件功能限制的步骤。兴趣的友友可以参考其中的修改过程。 课程的目的是了解apk中各个文件的具体作用以及简单…

JavaWeb—Servlet

概述 Javaweb的核心就是围绕servlet Servlet就是一个接口&#xff0c; 定义了java类 被浏览器访问到&#xff08;tomcat识别&#xff09;的接口 将来就是自己写一个类 &#xff0c;实现servlet接口 &#xff0c;重写方法 执行过程 当服务器接收到客户端浏览器的请求后&#xff…

【机器学习】机器学习与时间序列分析的融合应用与性能优化新探索

文章目录 引言第一章&#xff1a;机器学习在时间序列分析中的应用1.1 数据预处理1.1.1 数据清洗1.1.2 数据归一化1.1.3 数据增强 1.2 模型选择1.2.1 自回归模型1.2.2 移动平均模型1.2.3 长短期记忆网络1.2.4 卷积神经网络 1.3 模型训练1.3.1 梯度下降1.3.2 随机梯度下降1.3.3 A…

C# 编程中互斥锁的使用

C# 中的互斥锁 互斥锁是 C# 中使用的同步原语&#xff0c;用于控制多个线程或进程对共享资源的访问。其目的是确保在任何给定时间只有一个线程或进程可以获取互斥锁&#xff0c;从而提供互斥。 C# 中互斥锁的优点 可以使用互斥锁 (Mutex) 并享受其带来的好处。 1. 共享资源…

一篇就够了,为你答疑解惑:锂电池一阶模型-在线参数辨识(附代码)

锂电池一阶模型-在线参数辨识 背景在线 VS 离线 参数辨识递推最小二乘法一阶戴维南Z域离散表达式 背景 锂电池一阶戴维南等效模型的基础知识和离线辨识方法&#xff0c;已经在上一期非常详细地讲解了一轮&#xff08;上期文章请戳此处&#xff09;&#xff0c;本期继续讲解一下…

秋招提前批面试经验分享(上)

⭐️感谢点开文章&#x1f44b;&#xff0c;欢迎来到我的微信公众号&#xff01;我是恒心&#x1f60a; 一位热爱技术分享的博主。如果觉得本文能帮到您&#xff0c;劳烦点个赞、在看支持一下哈&#x1f44d;&#xff01; ⭐️我叫恒心&#xff0c;一名喜欢书写博客的研究生在读…

vue3中使用EasyPlayer播放h265视频流

1、下载EasyPlayer 5.0.3版本 在package.json中加入EasyPlayer&#xff0c;并全局install下 "dependencies": {"easydarwin/easyplayer": "^5.0.3" }2、找到node_modules中的EasyPlayer.wasm和EasyPlayer-element.min.js 3、复制到public下面&…

多元微分学中可微、连续、存在问题

一、偏导存在 与一元证明相同&#xff0c;利用偏导定义式&#xff0c;证明偏导数左右极限存在且相同。 二、偏导连续 与一元证明相同&#xff0c;证明 三、极限存在 1、找一条路径&#xff0c;一般地找 y kx 2、代入f(x,y)&#xff0c;得f(x,kx) 3、证明f(x,kx)极限存在 注意&…

基于java语言+ Vue+ElementUI+ MySQL8.0.36数字化产科管理平台源码,妇幼信息化整体解决方案

基于java语言 VueElementUI MySQL8.0.36数字化产科管理平台源码&#xff0c;妇幼信息化整体解决方案 数字化产科管理平台是为医院产科量身定制的信息管理系统。它管理了孕妇从怀孕开始到生产结束42天一系列医院保健服务信息。该系统由门诊系统、住院系统、数据统计模块三部分组…

昇思25天学习打卡营第14天|Pix2Pix实现图像转换

Pix2Pix是基于条件生成对抗网络&#xff08;cGAN, Condition Generative Adversarial Networks &#xff09;实现的一种深度学习图像转换模型&#xff0c;该模型是由Phillip Isola等作者在2017年CVPR上提出的&#xff0c;可以实现语义/标签到真实图片、灰度图到彩色图、航空图到…

MSPM0G3507——滴答定时器和普通定时

滴答定时器定时&#xff1a;&#xff08;放在主函数即可&#xff09; volatile unsigned int delay_times 0;//搭配滴答定时器实现的精确ms延时 void delay_ms(unsigned int ms) {delay_times ms;while( delay_times ! 0 ); } //滴答定时器中断 void SysTick_Handler(…

桌面快充插线板+伸缩数据线,轻松实现1+1>2

手机、平板、笔记本等电子设备已成为我们日常工作和学习的必备工具。然而,随着设备数量的增加,充电问题也日益凸显。桌面空间有限,多个快充头不仅显得杂乱无章,而且效率低下,无法满足我们高效办公的需求。 在这样的背景下,倍思Nomos氮化镓100W桌面充电站凭借其创新的设计和强大…

下载,连接mysql数据库驱动(最详细)

前言 本篇博客&#xff0c;我讲讲如何连接数据库&#xff1f;我使用mysql数据库举例。 目录 下载对应的数据库jar 包 百度网盘 存有8.4.0版本压缩包&#xff1a;链接&#xff1a;https://pan.baidu.com/s/13uZtXRmuewHRbXaaCU0Xsw?pwduipy 提取码&#xff1a;uipy 复制这…

Day05-04-持续集成总结

Day05-04-持续集成总结 1. 持续集成2. 代码上线目标项目 1. 持续集成 git 基本使用, 拉取代码,上传代码,分支操作,tag标签 gitlab 用户 用户组 项目 , 备份,https,优化. jenkins 工具平台,运维核心, 自由风格工程,maven风格项目,流水线项目, 流水线(pipeline) mavenpom.xmlta…