会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
boyeyuan
博客园
首页
新随笔
联系
管理
订阅
2025年7月5日
五子棋
摘要: #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)
2025年6月8日
查找关键字
摘要: #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)
2025年4月25日
斐波那契数列
摘要: #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)
2025年3月23日
斐波那契数列
摘要: #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)
输出1—10
摘要: #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)
2025年2月23日
3
摘要: #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)
2025年2月6日
11111
摘要: 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)
fffffff
摘要: #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)
2024年12月29日
梦幻西游2
摘要: #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)
下一页
公告