会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
bobo哥
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
4
5
6
7
8
9
10
11
12
···
54
下一页
2022年3月16日
华为 两个单臂路由的连接
摘要: 网络图: 两个交换机的配置相似: S1的配置: S2的配置: 路由器R1的配置: 路由器R2的配置: 1和3测试 2和4测试
阅读全文
posted @ 2022-03-16 22:16 bobo哥
阅读(339)
评论(0)
推荐(0)
2022年3月9日
c语言二维数组_3(上课)
摘要: //利用二维数组打印出如下杨辉三角形的前8行。 #include <stdio.h>#define N 8void main(){ int i, j, k, n=0, a[N][N]; /*定义二维数组a[8][8]*/ while(n<=0||n>=8){ /*控制打印的行数不要太大,过大会造成显
阅读全文
posted @ 2022-03-09 22:48 bobo哥
阅读(61)
评论(0)
推荐(0)
c语言二维数组_2(上课)
摘要: 源程序: //定义一个5行5列的二维数组,然后从键盘上输入数据对数组进行初始化,//求出该二维数组的四周元素的和。 #include <stdio.h>void main(){ int a[5][5],s,s1,i,j; /* s用来存放所有元素的和,s1用来存放中间元素的和 */ s=s1=0;
阅读全文
posted @ 2022-03-09 22:38 bobo哥
阅读(114)
评论(0)
推荐(0)
c语言二维数组_1(上课)
摘要: 源代码: //定义一个包含4行4列的二维整型数组,要求从键盘上输入数据对数组进行初始化,然后//求出该二维数组所有元素的和以及每一行元素的平均值 #include <stdio.h>void main(){ int sum,s,i,j,a[4][4]; float aver; printf("请输入
阅读全文
posted @ 2022-03-09 22:27 bobo哥
阅读(174)
评论(0)
推荐(0)
2022年3月7日
程序填空_5
摘要: 源程序: #include <iostream>using namespace std; int main(){ int max(int a,int b,int c=0); int a,b,c,m1,m2; cin>>a>>b>>c; m1=max(a,b,c); //程序填空 m2=max(a,b
阅读全文
posted @ 2022-03-07 20:11 bobo哥
阅读(38)
评论(0)
推荐(0)
2022年3月6日
程序填空_4
摘要: 源程序: #include <iostream>using namespace std; class toy{private: int num,price;public: toy(int q,int p) { num=q; price=p; } int get_num() { return num;
阅读全文
posted @ 2022-03-06 11:53 bobo哥
阅读(39)
评论(0)
推荐(0)
程序填空_3
摘要: 源程序: #include <iostream>using namespace std;int time=0,end=0;class Test{public: Test() { if(time==0) //程序填空 cout<<"欢迎使用测试程序!"<<endl; time=time+1; } ~T
阅读全文
posted @ 2022-03-06 11:45 bobo哥
阅读(30)
评论(0)
推荐(0)
程序填空_2
摘要: 源程序: #include <iostream>using namespace std; class Person{public: virtual void disp() { cout<<"Person "; }};class Address:public Person //程序填空{public:
阅读全文
posted @ 2022-03-06 11:17 bobo哥
阅读(38)
评论(0)
推荐(0)
程序填空_1
摘要: 源程序: #include <iostream>using namespace std; void fun(int *pa,int n); void SumArry(int *pa,int n){ for(int i=0;i<n-1;i++) *(pa+9)+=*(pa+i); //程序填空} vo
阅读全文
posted @ 2022-03-06 11:03 bobo哥
阅读(34)
评论(0)
推荐(0)
2022年3月3日
c语言 在已排序的数组中插入一个数,仍保持排序状态
摘要: 源程序: #include <stdio.h>void main(){ int a[11]={12,21,27,30,35,44,56,60,68,70}; int i,j,data; printf("请输入要插入到数组中的整数:\n"); scanf("%d",&data); if(data<=a
阅读全文
posted @ 2022-03-03 11:45 bobo哥
阅读(690)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
···
54
下一页
公告