摘要: #include <graphics.h> // 引用图形库头文件 #include <conio.h> void hei(int x,int y){ setfillcolor(BLACK); fillcircle(x,y,10); } void bai(int x,int y){ setfillc 阅读全文
posted @ 2025-07-05 15:57 昵称就是最好的昵称 阅读(2) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; int main(){ string s="qwerc++iopc++qwertyuiop",str=""; string g;cin>>g; int b=0,k=0; while((b=s.find(g, k)) ! 阅读全文
posted @ 2025-06-08 09:37 昵称就是最好的昵称 阅读(1) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; void _a(int n){ int a=0,b=1; int c; if(n<=2){ cout<<1; } for (int i =0;i<n;i++) { c=a+b; a=b; b=c; cout<<c<<" 阅读全文
posted @ 2025-04-25 19:14 昵称就是最好的昵称 阅读(1) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; int fc(int s){ if(s<=2){ return 1; }else{ return fc(s-1)+fc(s-2); } } int main(){ int n; cin>>n; cout<<f 阅读全文
posted @ 2025-03-23 09:30 昵称就是最好的昵称 阅读(3) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; int fc(int s){ if(s==1){ return 1; }else{ return s*fc(s-1); } } int main(){ int n; cin>>n; cout<<fc(n); 阅读全文
posted @ 2025-03-23 09:28 昵称就是最好的昵称 阅读(1) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; int fc(int s){ if(s==1){ return 1; }else{ cout<<s<<" "; return fc(s-1); } } int main(){ int n; cin>>n; c 阅读全文
posted @ 2025-03-23 09:27 昵称就是最好的昵称 阅读(1) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; class Rectgangle{ private: int length; int width; public: void js(int l,int w){ length=l; width=w; } void sj( 阅读全文
posted @ 2025-02-23 09:58 昵称就是最好的昵称 阅读(3) 评论(0) 推荐(0)
摘要: stu s1={1,”留有一“,111};cout<<s1.id<<endl;cout<<s1.name<<endl; for(int i=0;i<n;i++){ for(int j=n-1;j>0;j--){ if(a[i].cj<a[j].cj){ swap(a[i].age,a[j].age) 阅读全文
posted @ 2025-02-06 09:39 昵称就是最好的昵称 阅读(7) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; struct lile{ int age; string name; int cj; }; int main() { int n; cin>>n; lile a[n];lile a1; for(int i=0 阅读全文
posted @ 2025-02-06 09:35 昵称就是最好的昵称 阅读(6) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; int readfile(string name){ FILE *file=fopen(name.c_str(),"r"); if(file==NULL){ perror("文件打开失败"); return 1; } 阅读全文
posted @ 2024-12-29 09:49 昵称就是最好的昵称 阅读(6) 评论(0) 推荐(0)