会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
fushuxuan
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
···
18
下一页
2024年9月15日
作业
摘要: 二叉树: #include <bits/stdc++.h> using namespace std; int main(){ int n,sum=0; cin>>n; for(int i=1;i<=n;i*=2){ sum++; } cout<<sum; } 冒泡排序: #include <bits
阅读全文
posted @ 2024-09-15 15:57 fushuxuan1
阅读(26)
评论(0)
推荐(0)
2024年9月7日
服务端
摘要: //服务端(以C++作范例) #include"mysocket.h" //导入头文件:由于mysock头文件本身就有其它文件,这里无需导入 using namespace std; SOCKET s_accept; int main() { cout << " 服务端 \n"; cout << "
阅读全文
posted @ 2024-09-07 09:48 fushuxuan1
阅读(22)
评论(0)
推荐(0)
客户端1
摘要: #include "myscoket.h" using namespace std; int main(int argc, char** argv) { cout<<" 客户端 \n"; startup(); SOCKET client=createSocket(PF_INET,SOCK_STREA
阅读全文
posted @ 2024-09-07 09:37 fushuxuan1
阅读(23)
评论(0)
推荐(0)
2024年8月14日
棋子移动
摘要: #include <bits/stdc++.h> using namespace std; int qz(int a){ if(a==4){ cout<<"4,5-->9,10"<<endl; cout<<"8,9-->4,5"<<endl; cout<<"2,3-->8,9"<<endl; cou
阅读全文
posted @ 2024-08-14 10:00 fushuxuan1
阅读(20)
评论(0)
推荐(0)
2024年8月2日
中缀表达式
摘要: 中缀表达式一、基本概念1、中缀表达式:操作符以中缀形式位于运算数中间(如:3+2),是我们日常通用的算术和逻辑公式表示方法。2、后缀表达式:又称逆波兰式,操作符以后缀形式位于两个运算数后(如:3+2的后缀表达形式就是3 2 +)。3、前缀表达式:又称波兰式,操作符以前缀形式位于两个运算数前(如:3+
阅读全文
posted @ 2024-08-02 14:08 fushuxuan1
阅读(181)
评论(0)
推荐(0)
2024年7月29日
读入写出,转二进制
摘要: #include <bits/stdc++.h> using namespace std; int main(){ freopen("mz.txt","r",stdin); freopen("out.txt","w",stdout); string n; int a=0,m[7],j; cin>>n
阅读全文
posted @ 2024-07-29 15:01 fushuxuan1
阅读(23)
评论(0)
推荐(0)
2024年7月22日
字母等腰三角形
摘要: #include <bits/stdc++.h> using namespace std; int main(){ int a,b,t; cin>>a; char n; b=2*(a-1)+1; for(int i=1;i<=a;i++){ cout<<setw(b-i); t=64; for(in
阅读全文
posted @ 2024-07-22 15:43 fushuxuan1
阅读(16)
评论(0)
推荐(0)
2024年7月12日
选择按钮
摘要:
阅读全文
posted @ 2024-07-12 15:57 fushuxuan1
阅读(31)
评论(0)
推荐(0)
Timer定时器
摘要:
阅读全文
posted @ 2024-07-12 15:56 fushuxuan1
阅读(24)
评论(0)
推荐(0)
倒计时
摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.
阅读全文
posted @ 2024-07-12 15:55 fushuxuan1
阅读(28)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
18
下一页
公告