11 2023 档案

摘要:import random import pygame PANEL_width = 1080 PANEL_highly = 720 FONT_PX = 15 makeblock = pygame.image.load('logo.png') pygame.init() # 创建一个可视窗口 # Cr 阅读全文
posted @ 2023-11-24 11:03 昵称就是最好的昵称 阅读(42) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> using namespace std; struct card{ //属性 string name; int id; string classroom; float money; int money_type;//0人民币 1美元 2 泰铢 string c 阅读全文
posted @ 2023-11-19 09:30 昵称就是最好的昵称 阅读(4) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> using namespace std; struct a{ int shuchu; string name; int a(int shuchu){ return shuchu*2; } }s1; int main(){ s1.name="阿萨达"; s1.s 阅读全文
posted @ 2023-11-18 09:42 昵称就是最好的昵称 阅读(4) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> using namespace std; //变量名[]形式传递一维数组 //求平均数 float avg(int a[],int n){ float sum=0.0; for(int i=0;i<n;i++){ sum+=a[i]; } return sum 阅读全文
posted @ 2023-11-18 08:54 昵称就是最好的昵称 阅读(11) 评论(0) 推荐(0) 编辑
摘要:#include <bits/stdc++.h>#include <string>#include <iomanip>using namespace std;int kongge(string a);int jia(string a);int jian(string a);int chu(strin 阅读全文
posted @ 2023-11-12 08:46 昵称就是最好的昵称 阅读(10) 评论(0) 推荐(0) 编辑
摘要:#include <bits/stdc++.h> #include <Windows.h> using namespace std; int HENG=16,SHU=16; int IS_WIN=false; int ALL[16][16]; void f5(){ system("cls"); co 阅读全文
posted @ 2023-11-05 09:31 昵称就是最好的昵称 阅读(7) 评论(0) 推荐(0) 编辑
摘要:#include iostream> using namespace std; int s(int a,int b){ if(a==b){ return 1; } if(a>b){ swap(a,b); } return s(a,b-a)+1; } int main(){ int a,b; cin> 阅读全文
posted @ 2023-11-04 09:47 昵称就是最好的昵称 阅读(2) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> using namespace std; int a(int n){ if(n<=2){ return 1; }else{ return a(n-1)+a(n-2); } } int main(){ int n; cin>>n; cout<<a(n); ret 阅读全文
posted @ 2023-11-04 08:45 昵称就是最好的昵称 阅读(2) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> #include <fstream> using namespace std; int main(){ ifstream a; string b; cin>>b; a.open("qwq.txt"); a>>b; cout<<b; return 0; } 阅读全文
posted @ 2023-11-03 20:11 昵称就是最好的昵称 阅读(3) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> #include <fstream> using namespace std; int main(){ ofstream a; string b,c="qwq",d=".txt"; cin>>b; for(int i=0;i<100;i++){ a.open( 阅读全文
posted @ 2023-11-03 20:10 昵称就是最好的昵称 阅读(5) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示