上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 54 下一页
摘要: 源程序: void main(){ int a[10]={12,38,35,22,97,65,50,88,9,75}; int i,j,t; //t是临时变量 for(j=1;j<=9;j++) //外层循环控制第几趟排序 { for(i=0;i<=10-j-1;i++) //内层循环是比较两个数的 阅读全文
posted @ 2022-03-03 11:28 bobo哥 阅读(95) 评论(0) 推荐(0)
摘要: 源程序 #include <stdio.h>void main(){ int i; float A[10], min, max, avg=0; printf("输入10个学生的成绩:\n"); for (i = 0; i <= 9; i++) { printf("第%d个学生成绩:", i + 1) 阅读全文
posted @ 2022-03-03 08:05 bobo哥 阅读(2090) 评论(0) 推荐(0)
摘要: 网络图: 配置命令: 阅读全文
posted @ 2022-02-24 17:24 bobo哥 阅读(59) 评论(0) 推荐(1)
摘要: (一) 网络图: (二)S2交换机的配置: (三)S3交换机的配置: (四)S1交换机的配置: (五)客户端的配置 (六)服务器端的配置 结论:可以看到,客户端访问了服务器的资源;客户端通过FTP可以下载服务器的资源。 阅读全文
posted @ 2022-01-11 13:25 bobo哥 阅读(308) 评论(0) 推荐(0)
摘要: (一) 网络图: (二)配置LSW1交换机: 交换机1有三个VLAN通过,创建VLAN10 20 30 ,并设置端口均为trunk类型,允许所有VLAN通过: (三)配置LSW2交换机: 第二台交换机有两个VLAN,一个端口为trunk类型,另两个端口为access类型。e0/0/2端口加入VLAN 阅读全文
posted @ 2022-01-11 09:32 bobo哥 阅读(316) 评论(0) 推荐(1)
摘要: 源程序: #include <iostream>#include <fstream>using namespace std;int main(){ char c; int num=0; freopen("d:\\test.txt","r",stdin); while(!cin.eof())0 { c 阅读全文
posted @ 2021-12-27 20:01 bobo哥 阅读(35) 评论(0) 推荐(0)
摘要: 源代码: #include <iostream> void QuickSort(int arr[], int start, int end); void swap(int& a, int& b); int main() { int a[] = { 7,12,5,8,4,2,10,15 }; int 阅读全文
posted @ 2021-12-24 23:35 bobo哥 阅读(53) 评论(0) 推荐(0)
摘要: 源程序: def quicksort (array): if len(array) < 2: return array else: pivot = array[0] less = [i for i in array[1: ] if i <= pivot] greater = [i for i in 阅读全文
posted @ 2021-12-24 23:33 bobo哥 阅读(43) 评论(0) 推荐(0)
摘要: 源程序: #include <iostream>using namespace std; class Base{private: int x;public: Base(int a) { x=a; } int getX() { return x; } void show() { cout<<x<<en 阅读全文
posted @ 2021-12-06 20:28 bobo哥 阅读(42) 评论(0) 推荐(0)
摘要: 源程序: #include<iostream>using namespace std; class A{protected: int x;public: A(int a) { x=a; } int get_x() { return x; } void show() { cout<<"x="<<x<< 阅读全文
posted @ 2021-12-05 11:54 bobo哥 阅读(81) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 54 下一页