C語言實現航班管理

航班管理系統,用C語言實現,可以作為課程設計,代碼如下:

#include<iostream>
#include<fstream>
#include<vector>
#include<string>?
#include<stdlib.h>
using namespace std;

//信息基類?
class info{
protected:
?? ?int flightnumber;
public:
? ? int Get_flightnumber(){return flightnumber;}
?? ?virtual void Get_Message();
? ? virtual void Read_File(fstream &file);//從文件中讀取?
? ? virtual void Write_File(fstream &file);//寫入文件?
? ? virtual void Show_Message();
? ? virtual ~info(){};
};


//系統類?
class System{
?? ?fstream file1,file2;
?? ?info *myi;
?? ?vector<info*> inv[4];?
?? ?vector<info*>::iterator iter;
?? ?public:
?? ??? ?System();
?? ??? ?void menu();
?? ??? ?void menu1(int i);
?? ??? ?void menu2(int i);
?? ??? ?void menu3(int i);
?? ??? ?void Load(vector<info*> &inv,int choose);//信息錄入?
?? ??? ?void Save(vector<info*> inv);//信息保存?
?? ??? ?void Add(vector<info*> &inv,int choose);//信息添加?
?? ??? ?void Delete(vector<info*> &inv,int choose);//信息刪除?
?? ??? ?void Search(vector<info*> inv);//信息查找?
?? ??? ?void Show(vector<info*> inv);//信息顯示?
?? ??? ?~System(){};
};


//航班信息類
class flight:virtual public info{
protected:
string place1;
string place2;
string time;
double price;
int maxpeople;
fstream file1,file2;
public:
flight(){};?
string Get_place1(){return place1;}?
string Get_place2(){return place2;}
string Get_time(){return time;} ?
void Get_Message();
void Read_File(fstream &file);
void Write_File(fstream &file);
void Show_Message();
~flight(){};
};

//客戶類?
class guest:virtual public info{
protected:
?? ?string name;
?? ?int id;
?? ?string sex;
?? ?int ticketnum;
?? ?public:
guest(){};?
void Get_Message();
string Get_name(){return name;}
int Get_id(){return id;}
void Read_File(fstream &file);
void Write_File(fstream &file);
void Show_Message();
~guest(){};
};

//機票類?
class ticket:virtual public info{
?protected:?
?? ?int zticket;
?? ?int syticket;
?? ?fstream file1,file2;
?? ?public:
ticket(){};?
void Get_Message();
void Read_File(fstream &file);
void Write_File(fstream &file);
void Show_Message();
~ticket(){};
};

//客戶行程信息類?
class guestflight:public flight,public guest{
public:
guestflight(){};?
void Get_Message(){};
void Read_File(fstream &file);
void Write_File(fstream &file);
void Show_Message(){};
~guestflight(){};
};

//基類信息實現?
void info::Get_Message(){
?? ?cout<<"請輸入航班號:";
?? ?cin>>flightnumber;?
}
void info::Show_Message(){
?? ?cout<<"flight:"<<flightnumber<<endl;
}
void info::Write_File(fstream &file){
?? ?file<<flightnumber;
}
void info::Read_File(fstream &file){
?? ?file>>flightnumber;
}

//航班實現?
void flight::Get_Message(){
info::Get_Message();
cout<<endl<<"請輸入出發地:";
cin>>place1;
cout<<endl<<"請輸入目的地:";
cin>>place2;
cout<<endl<<"請輸入出發時間:";
cin>>time;
cout<<endl<<"請輸入票價:";
cin>>price;
cout<<endl<<"請輸入最大載客量:";
cin>>maxpeople;
cout<<endl;
}
void flight::Show_Message(){
info::Show_Message();
cout<<"place1:"<<place1<<endl;
cout<<"place2:"<<place2<<endl;
cout<<"time:"<<time<<endl;
cout<<"price:"<<price<<endl;
cout<<"maxpeople:"<<maxpeople<<endl;
}
void flight::Write_File(fstream &file){
info::Write_File(file);
file<<place1<<" "<<place2<<" "<<time<<" "<<price<<" "<<maxpeople<<endl;
}
void flight::Read_File(fstream &file){
info::Read_File(file);
file>>place1>>place2>>time>>price>>maxpeople;
}


//客戶實現?
void guest::Get_Message(){
info::Get_Message();
cout<<endl<<"請輸入姓名:";
cin>>name;
cout<<endl<<"請輸入證件號:";
cin>>id;
cout<<endl<<"請輸入性別:";
cin>>sex;
cout<<endl<<"請輸入訂票票數:";
cin>>ticketnum;
cout<<endl;
}

void guest::Show_Message(){
info::Show_Message();
cout<<"name:"<<name<<endl;
cout<<"id:"<<id<<endl;
cout<<"sex:"<<sex<<endl;
cout<<"ticketnum:"<<ticketnum<<endl;
}

void guest::Write_File(fstream &file){
info::Write_File(file);
file<<name<<" "<<id<<" "<<sex<<" "<<ticketnum<<endl;
}

void guest::Read_File(fstream &file){
info::Read_File(file);
file>>name>>id>>sex>>ticketnum;
}


//機票實現?
void ticket::Get_Message(){
info::Get_Message();
cout<<endl<<"請輸入總票數:";
cin>>zticket;
cout<<endl<<"請輸入剩余票數:";
cin>>syticket;
cout<<endl;?
}
void ticket::Show_Message(){
info::Show_Message();
cout<<"zticket:"<<zticket<<endl;
cout<<"syticket:"<<syticket<<endl;
}
void ticket::Write_File(fstream &file){
info::Write_File(file);
file<<zticket<<" "<<syticket<<endl;
}
void ticket::Read_File(fstream &file){
info::Read_File(file);
file>>zticket>>syticket;
}


//客戶行程實現?
void guestflight::Write_File(fstream &file){
info::Write_File(file);
file<<guest::name<<" "<<guest::id<<" "<<flight::flightnumber<<" "<<flight::place1<<" "<<flight::place2<<" "<<flight::time;
}
void guestflight::Read_File(fstream &file){
info::Read_File(file);
file>>guest::name>>guest::id>>flight::flightnumber>>flight::place1>>flight::place2>>flight::time;
}

//系統類實現
System::System(){
file1.open("flight1.txt",ios::out);
?? ?if(!file1){
?? ??? ?cout<<"file open error!"<<endl;
?? ??? ?abort();
?? ?}
file2.open("flight2.txt",ios::in);
?? ?if(!file2){
?? ??? ?cout<<"file open error!"<<endl;
?? ??? ?abort();
?? ?}
}

void System::menu(){
?? ?int choose,yn;
?? ?while(1){
?? ??? ?cout<<"請選擇您要管理的信息類型:"<<endl;
?? ??? ?cout<<"0-航班信息"<<endl;
?? ??? ?cout<<"1-客戶信息"<<endl;
?? ??? ?cout<<"2-機票信息"<<endl;
?? ??? ?cout<<"3-顯示所有客戶行程信息"<<endl;
?? ??? ?cout<<"請輸入:"<<endl;?
?? ??? ?cin>>choose;
?? ??? ?cout<<endl;
?? ? ? ??? ?guest g;
?? ??? ??? ?flight f;
?? ??? ??? ?fstream infile("guestflight2.txt",ios::in);
?? ??? ?switch(choose){
?? ??? ??? ?case 0:
?? ??? ??? ??? ?menu1(choose);
?? ??? ??? ??? ?break;
?? ??? ??? ?case 1:
?? ??? ??? ??? ?menu2(choose);
?? ??? ??? ??? ?break;
? ? ? ? ?? ?case 2:
?? ??? ??? ??? ?menu3(choose);
?? ??? ??? ??? ?break;
?? ??? ??? ?case 3:?
?? ??? ??? ? ? ?while(!infile.eof()){
?? ??? ??? ? ? ?infile<<g.Get_name()<<g.Get_id()<<f.Get_flightnumber()<<f.Get_place1()<<f.Get_place2()<<f.Get_time();
?? ??? ??? ? ? ?cout<<g.Get_name()<<g.Get_id()<<f.Get_flightnumber()<<f.Get_place1()<<f.Get_place2()<<f.Get_time();
?? ??? ??? ?}
?? ??? ??? ? ? ?break;
?? ??? ??? ?default:
?? ??? ??? ??? ?cout<<"輸入有誤!"<<endl;
?? ??? ??? ??? ?exit(0);?
?? ??? ??? ?}
?? ??? ?cout<<"是否繼續?(1/0)"<<endl;
?? ??? ?cin>>yn;
?? ??? ?if(yn!=1)?
?? ??? ?break;
?? ?}
}

void System::menu1(int i){
?? ?int choose,ny;
?? ?while(1){
?? ??? ?cout<<"請選擇操作:"<<endl;
?? ??? ?cout<<"0-航班信息錄入"<<endl;
?? ??? ?cout<<"1-添加航班信息"<<endl;
?? ??? ?cout<<"2-刪除航班信息"<<endl;
?? ??? ?cout<<"3-更改航班信息"<<endl;
?? ??? ?cout<<"4-查詢航班信息"<<endl;
?? ??? ?cout<<"5-顯示航班信息"<<endl;
?? ??? ?cout<<"6-保存航班信息"<<endl;
?? ??? ?cout<<"請輸入:"<<endl;
?? ??? ?cin>>choose;
?? ??? ?cout<<endl;
?? ??? ?switch(choose){
?? ??? ??? ?case 0:
?? ??? ??? ?Load(inv[i],choose);
?? ??? ??? ?break;
?? ??? ??? ?case 1:
?? ??? ??? ?Add(inv[i],choose);
?? ??? ??? ?break;
?? ??? ??? ?case 2:
?? ??? ??? ?Delete(inv[i],choose);
?? ??? ??? ?break;
?? ??? ??? ?case 3:?? ?
?? ??? ??? ?break;
?? ??? ??? ?case 4:
?? ??? ??? ?Search(inv[i]);
?? ??? ??? ?break;
?? ??? ??? ?case 5:
?? ??? ??? ?Show(inv[i]);
?? ??? ??? ?break;
?? ??? ??? ?case 6:
?? ??? ??? ?Save(inv[i]);
?? ??? ??? ?break;
?? ??? ??? ?default:
?? ??? ??? ??? ?cout<<"輸出有誤"<<endl;
?? ??? ??? ??? ?exit(0);
? ? ? ? ? ? ? ? ? }
? ? ? ? cout<<"是否繼續?(1/0)"<<endl;
?? ??? ?cin>>ny;
?? ??? ?if(ny!=1)?
?? ??? ?break;
?? ??? ?}?
}

void System::menu2(int i){
?? ?int choose,ny;
?? ??? ?while(1){
?? ? ? ?cout<<"請選擇操作:"<<endl;
?? ??? ?cout<<"0-客戶信息錄入"<<endl;
?? ??? ?cout<<"1-添加客戶信息"<<endl;
?? ??? ?cout<<"2-刪除客戶信息"<<endl;
?? ??? ?cout<<"3-更改客戶信息"<<endl;
?? ??? ?cout<<"4-查詢客戶信息"<<endl;
?? ??? ?cout<<"5-顯示客戶信息"<<endl;
?? ??? ?cout<<"6-保存客戶信息"<<endl;
?? ??? ?cout<<"按任意鍵退出...."<<endl;
?? ??? ?cout<<"請輸入:";
?? ??? ?cin>>choose;
?? ??? ?cout<<endl;
?? ??? ?switch(choose){
?? ??? ??? ?case 0:
?? ??? ??? ?Load(inv[i],choose);
?? ??? ??? ?break;
?? ??? ??? ?case 1:
?? ??? ??? ?Add(inv[i],choose);
?? ??? ??? ?break;
?? ??? ??? ?case 2:
?? ??? ??? ?Delete(inv[i],choose);
? ? ? ? ? ? break;
? ? ? ? ? ? case 3:
? ? ? ? ? ? ?? ?
?? ??? ??? ?case 4:
?? ??? ??? ?Search(inv[i]);
?? ??? ??? ?break;
?? ??? ??? ?case 5:
?? ??? ??? ?Show(inv[i]);
?? ??? ??? ?break;
?? ??? ??? ?case 7:
?? ??? ??? ?Save(inv[i]);
?? ??? ??? ?break;
?? ??? ?default:
?? ??? ?cout<<"輸出有誤"<<endl;
?? ??? ?exit(0);
? ? ? ? ? ?}
? ? ? ? cout<<"是否繼續?(1/0)"<<endl;
?? ??? ?cin>>ny;
?? ??? ?if(ny!=1)?
?? ??? ?break;?? ??? ?
?? ??? ?} ?? ??? ?
?? ??? ?}


void System::menu3(int i){
?? ?int choose,ny;
?? ??? ?while(1){
?? ? ? ?cout<<"請選擇操作:"<<endl;
?? ??? ?cout<<"0-機票信息錄入"<<endl;
?? ??? ?cout<<"1-添加機票信息"<<endl;
?? ??? ?cout<<"2-刪除機票信息"<<endl;
?? ??? ?cout<<"3-更改機票信息"<<endl;
?? ??? ?cout<<"4-查詢機票信息"<<endl;
?? ??? ?cout<<"5-顯示機票信息"<<endl;
?? ??? ?cout<<"6-保存機票信息"<<endl;
?? ??? ?cout<<"按任意鍵退出...."<<endl;
?? ??? ?cout<<"請輸入:";
?? ??? ?cin>>choose;
?? ??? ?cout<<endl;
?? ??? ?switch(choose){
?? ??? ??? ?case 0:
?? ??? ??? ?Load(inv[i],choose);
?? ??? ??? ?break;
?? ??? ??? ?case 1:
?? ??? ??? ?Add(inv[i],choose);
?? ??? ??? ?break;
?? ??? ??? ?case 2:
?? ??? ??? ?Delete(inv[i],choose);
?? ??? ??? ?break;
?? ??? ??? ?case 3:?? ?
?? ??? ??? ?break;
?? ??? ??? ?case 4:
?? ??? ??? ?Search(inv[i]);
?? ??? ??? ?break;
?? ??? ??? ?case 5:
?? ??? ??? ?Show(inv[i]);
?? ??? ??? ?break;
?? ??? ??? ?case 6:
?? ??? ??? ?Save(inv[i]);
?? ??? ??? ?break;
?? ??? ??? ?default:
?? ??? ? ?cout<<"輸出有誤"<<endl;
?? ? ? ? ?exit(0);
? ? ? ? ? ? ? ? }
? ? ? ? cout<<"是否繼續?(1/0)"<<endl;
?? ??? ?cin>>ny;
?? ??? ?if(ny!=1)?
?? ??? ?break;?? ??? ?
?? ??? ?} ?? ??? ?
?? ??? ?}

void System::Load(vector<info*> &myv,int choose){
?? ?while(!file2.eof()){
?? ?switch(choose){
?? ??? ?case 1:
?? ??? ?myi=new flight;
?? ??? ?break;
?? ??? ?case 2:
?? ??? ?myi=new guest;
?? ??? ?break;
?? ??? ?case 3:?? ?
?? ??? ?myi=new ticket;
?? ??? ?break;
?? ??? ?case 4:
?? ??? ?myi=new guestflight;
?? ??? ?break;
?? ?}
?? ?myi->Read_File(file2);
?? ?myv.push_back(myi);
}
file2.close();
}

void System::Save(vector<info*> myv){
?? ?for(iter=myv.begin();iter<myv.end();iter)
?? ?(*iter)->Write_File(file1);
?? ?file1.close();
}

void System::Add(vector<info*> &myv,int choose){
?? ?switch(choose){
?? ??? ?case 1:
?? ??? ?myi=new flight;
?? ??? ?break;
?? ??? ?case 2:
?? ??? ?myi=new guest;
?? ??? ?break;
?? ??? ?case 3:?? ?
?? ??? ?myi=new ticket;
?? ??? ?break;
?? ??? ?case 4:
?? ??? ?myi=new guestflight;
?? ??? ?break;
?? ?}
?? ?myi->Get_Message();
?? ?myv.push_back(myi);
}

void System::Delete(vector<info*> &myv,int choose){?
int flight1,flight2;
?? ?switch(choose){
?? ??? ?case 1:
?? ??? ?cout<<"請輸入您要刪除的航班號"<<endl;
?? ??? ?cin>>flight1;
?? ??? ?for(iter=myv.begin();iter!=myv.end();iter++){
?? ??? ??? ?if((*iter)->Get_flightnumber()==flight1){
?? ??? ??? ??? ?myv.erase(iter);
?? ??? ??? ?}
?? ??? ?}?
?? ??? ?break;
?? ??? ?case 2:
?? ?//cout<<"請輸入您要刪除的客戶名"<<endl;
??? ?//?? ?string guest1;
?? ?//?? ?cin>>guest1;
?? ?//?? ?for(iter=myv.begin();iter!=myv.end();iter++){
? ? //?? ??? ??? ?if((*iter)->Get_name()==guest1){
?? ?//?? ??? ??? ?myv.erase(iter);
?? ?//?? ??? ?}
? ? //?? ??? ?}?
?? ?//break;
?? ??? ?case 3:?? ?
?? ??? ?cout<<"請輸入您要刪除的航班號"<<endl;
?? ??? ?cin>>flight2;
?? ??? ?for(iter=myv.begin();iter!=myv.end();iter++){
?? ??? ?if((*iter)->Get_flightnumber()==flight2){
?? ??? ?myv.erase(iter);
?? ? }
? ? ?}
?? ??? ?break;
?? ?}
}


void System::Search(vector<info*> myv){
?? ??? ?int flight1;
?? ??? ?cout<<"請輸入您要查找的航班號"<<endl;
?? ??? ?cin>>flight1;
?? ??? ?for(iter=myv.begin();iter!=myv.end();iter++){
?? ??? ??? ?if((*iter)->Get_flightnumber()==flight1){
?? ??? ??? ?(*iter)->Show_Message();
?? ??? ??? ?}
?? ??? ?}?
?? ?}
?? ?

void System::Show(vector<info*> myv){
?? ?for(iter=myv.begin();iter!=myv.end();iter++){
?? ?(*iter)->Show_Message();
?? ?}
}

int main(){
?? ?System s;
?? ?s.menu();
?? ?return 0;
}
?

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/713731.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/713731.shtml
英文地址,請注明出處:http://en.pswp.cn/news/713731.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

Linux第67步_linux字符設備驅動_注冊和注銷

1、字符設備注冊與注銷的函數原型” /*字符設備注冊的函數原型*/ static inline int register_chrdev(unsigned int major,\ const char *name, \ const struct file_operations *fops) /* major:主設備號&#xff0c;Limnux下每個設備都有一個設備號&#xff0c;設備號分…

【六袆 - React】Next.js:React 開發框架;Next.js開發框架的特點

Next.js&#xff1a;React 開發框架 Next.js的特點 1.直觀的、基于頁面的路由系統&#xff08;并支持動態路由&#xff09; Next.js 提供了基于文件系統的路由&#xff0c;意味著你可以通過創建頁面文件來定義路由。 偽代碼示例&#xff1a; // pages/index.js export defa…

【GStreamer】basic-tutorial-2:創建、鏈接GstElement,修改其屬性、狀態

【目錄】郭老二博文之:圖像視頻匯總 1、示例注釋 #include <gst/gst.h>int main (int argc, char *argv[]) {GstElement *pipeline,

MYSQL--JDBC優化

一.JDBC優化: 優化前提: 有時候我們并不清楚某些表當中一共有多少列,以及這些列的數據類型,這個時候我們就需要提前通過一些方法提前了解到這些數據,從而更好的進行輸出 具體語句: package cn.jdbc;import java.sql.*;public class JDBCDEmo1 {public static void main(String…

C語言中的動態內存管理技巧:實現靈活的內存分配和釋放

概念 在C語言中&#xff0c;動態內存管理是實現靈活內存分配和釋放的關鍵。合理地管理動態內存可以提高程序的效率和擴展性。本文將介紹C語言中常用的動態內存管理方法和技巧&#xff0c;幫助讀者優化內存分配和釋放的過程。 常用的動態內存管理方法 內存分配&#xff1a;C語…

【數學建模獲獎經驗】2023第八屆數維杯數學建模:華中科技大學本科組創新獎獲獎分享

2024年第九屆數維杯大學生數學建模挑戰賽將于&#xff1a;2024年5月10日08:00-5月13日09:00舉行&#xff0c;近期同學們都開始陸續進入了備賽階段&#xff0c;今天我們就一起來看看上一屆優秀的創新獎選手都有什么獲獎感言吧~希望能幫到更多熱愛數學建模的同學。據說點贊的大佬…

elment-ui table表格排序后 清除排序箭頭/恢復默認排序 的高亮樣式

問題描述&#xff1a; 1.默認排序是按照名稱升序排列&#xff08;圖一&#xff09; 2.在選擇了篩選項以及其他排序方式之后&#xff0c;箭頭高亮是這樣的&#xff08;圖二&#xff09; 3.當我點擊清空按鈕后&#xff0c;類型清空了&#xff0c;并且傳給后端的排序方式是名稱/升…

探索色彩搭配的奧秘:如何選擇適合產品的理想配色方案

title: 探索色彩搭配的奧秘&#xff1a;如何選擇適合產品的理想配色方案 date: 2024/3/1 20:47:45 updated: 2024/3/1 20:47:45 tags: 色彩搭配品牌形象用戶體驗情感連接信息傳達視覺層次色調選擇 引言 友善的色彩搭配和色調選擇是現代產品設計中不可忽視的關鍵因素。通過正確…

Linux yum安裝pgsql出現Bad GPG signature錯誤

官方文檔&#xff1a;https://www.postgresql.org/download/linux/redhat/ sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm sudo yum install -y postgresql12-server sudo /usr/pgsql-12/bin/…

Rust使用calamine讀取excel文件,Rust使用rust_xlsxwriter寫入excel文件

Rust使用calamine讀取已存在的test.xlsx文件全部數據&#xff0c;還讀取指定單元格數據&#xff1b;Rust使用rust_xlsxwriter創建新的output.xlsx文件&#xff0c;并寫入數據到指定單元格&#xff0c;然后再保存工作簿。 Cargo.toml main.rs /*rust讀取excel文件*/ use cala…

Pytest-parametrize實現測試用例與測試數據分離

Pytest自動化框架&#xff0c;實現自動化測試用例與測試數據分離方法&#xff1a; 1.測試用例數據準備&#xff0c;使用yaml文件編輯&#xff0c;如下述teladress.yaml 2.通過pytest框架裝飾器pytest.mark.parametrize實現測試數據傳參 示例&#xff1a; 測試用例文件&…

Tomcat 架構

一、Http工作原理 HTTP協議是瀏覽器與服務器之間的數據傳送協議。作為應用層協議&#xff0c;HTTP是基于TCP/IP協議來傳遞數據的&#xff08;HTML文件、圖片、查詢結果等&#xff09;&#xff0c;HTTP協議不涉及數據包&#xff08;Packet&#xff09;傳輸&#xff0c;主要規定了…

c語言之字符串的輸入和輸出

c語言在輸出字符串時&#xff0c;用格式符‘%s"&#xff0c;代碼比較簡潔 如果說數組長度大于字符串長度&#xff0c;也只輸出\0前的內容 字符串默認后面有\0. 如果字符串有多個\0&#xff0c;會默認在第一個\0結束 #include<stdio.h> int main() {int i;char a…

GO數組切片

1. 數組 數組是一個由固定長度的特定類型元素組成的序列&#xff0c;一個數組可以由零個或多個元素組成。 因為數組的長度是固定的&#xff0c;所以在Go語言中很少直接使用數組。 Go語言數組的聲明&#xff1a; var 數組變量名 [元素數量]Type 1 數組變量名&#xff1a;數…

本地快速部署谷歌開放模型Gemma教程(基于WasmEdge)

本地快速部署谷歌開放模型Gemma教程&#xff08;基于WasmEdge&#xff09; 一、介紹 Gemma二、部署 Gemma2.1 部署工具2.1 部署步驟 三、構建超輕量級 AI 代理四、總結 一、介紹 Gemma Gemma是一系列輕量級、最先進的開放式模型&#xff0c;采用與創建Gemini模型相同的研究和技…

持續集成(CICD)- Jenkins插件安裝失敗解決辦法

解決辦法&#xff1a;將插件安裝更新源需要改成國內鏡像源 具體步驟如下&#xff1a; 步驟一&#xff1a;修改Jenkins工作目錄下的 hudson.model.UpdateCenter.xml 文件&#xff0c;將url 改為http://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json 步驟二…

RuoYi-Vue-Plus功能分析-jackson配置

文章目錄 前言一、配置文件二、配置類三、注解四、json工具類1. 工具內容2. 使用工具 前言 前端在給我發送請求的時候一般包含三個部分url&#xff0c;header&#xff0c;body。那么就會涉及我們后端如何接收這些請求參數并且我們處理完畢參數后前端又如何接收參數 通過url傳…

代碼隨想錄刷題筆記 DAY 37 | 動態規劃理論基礎 | 斐波那契數 No.509 | 爬樓梯 No.70 | 使用最小花費爬樓梯 No.746

文章目錄 Day 3700. 動態規劃理論基礎01. 斐波那契數&#xff08;No. 509&#xff09;<1> 題目<2> 筆記<3> 代碼 02. 爬樓梯&#xff08;No. 70&#xff09;<1> 題目<2> 筆記<3> 代碼 03. 使用最小花費爬樓梯&#xff08;No. 746&#xff…

ECMAScript-262 @2023版本中的關鍵字和保留字

1、什么是標識符&#xff1f; 所謂標識符&#xff0c;就是javascript里的變量、函數、屬性或函數參數的名稱&#xff0c;可由一個或多個字符組成&#xff0c;當然標識符有命名規范 標識符第一個字符必須是 一個字母、下劃線&#xff08;_&#xff09;或美元符號&#xff08;$…

ONLYOFFICE文檔8.0全新發布:私有部署、卓越安全的協同辦公解決方案

ONLYOFFICE文檔8.0全新發布&#xff1a;私有部署、卓越安全的協同辦公解決方案 文章目錄 ONLYOFFICE文檔8.0全新發布&#xff1a;私有部署、卓越安全的協同辦公解決方案摘要&#x1f4d1;引言 &#x1f31f;正文&#x1f4da;一、ONLYOFFICE文檔概述 &#x1f4ca;二、ONLYOFFI…