上一页 1 2 3 4 5 6 7 8 9 10 ··· 54 下一页
摘要: 源程序: #include <iostream>using namespace std; class B;class A{private: int i;public: int set(B&); int get() { return i; } A(int x) { i = x; }}; class B 阅读全文
posted @ 2022-04-10 10:28 bobo哥 阅读(44) 评论(0) 推荐(0)
摘要: 网络图: 作为BGP的路由器是:R13, R14, R22, R31 四个 R11的配置: R13的配置: R14的配置: R22的配置: R31的配置: R24的配置: R33的配置: 电脑ping通情况: 抓包: 阅读全文
posted @ 2022-04-05 21:26 bobo哥 阅读(110) 评论(0) 推荐(0)
摘要: 源程序: #include <stdio.h>#include <string.h>#include <stdlib.h> #define LINEMAX 20 /*定义字符串的最大长度*/ void sort(char** p) /*冒泡法对5个字符串排序函数*/{ int i, j; char 阅读全文
posted @ 2022-04-05 15:46 bobo哥 阅读(936) 评论(0) 推荐(0)
摘要: 源程序: #include <stdio.h>#include <stdlib.h> //输出4个学生5门课程void print(int m[4][5]){ int i, j; for (i = 0; i < 4; i++) { for (j = 0; j < 5; j++) { printf(" 阅读全文
posted @ 2022-04-02 23:34 bobo哥 阅读(400) 评论(0) 推荐(0)
摘要: 源程序: #include <stdio.h> #include <stdlib.h> //在此处定义函数1. //在此处定义函数2. //在此处定义函数3. //在此处定义函数4. //菜单 void menu() { printf("\n***************************** 阅读全文
posted @ 2022-04-02 17:31 bobo哥 阅读(722) 评论(0) 推荐(0)
摘要: 某一个班级有4名学生,每个学生有5门课程。分别编写3个函数实现如下要求: (1)求第一门课程的平均分; (2)找出有两门以上课程不及格的学生,输出他们的学号和全部课程成绩及平均成绩; (3)找出平均成绩在90分以上或全部课程成绩在85分以上的学生; 源代码: #include <stdio.h> / 阅读全文
posted @ 2022-04-01 23:06 bobo哥 阅读(127) 评论(0) 推荐(0)
摘要: 源程序: #include <stdio.h> //求最大值的函数int highest(int m[3][4]) //形式参数是二维数组{ int a = m[0][0]; //认为第一个数是最大值 int i, j; for (i = 0; i < 3; i++) //外层循环控制行 { for 阅读全文
posted @ 2022-03-30 23:40 bobo哥 阅读(299) 评论(0) 推荐(0)
摘要: 源程序: #include <stdio.h>int main(){ int upper=0,lower=0,digit=0,space=0,other=0,i=0; char *p,s[80]; printf("请输入一串字符,包括大写字母、小写字母、数字、空格和其他字符,不超过80个:\n"); 阅读全文
posted @ 2022-03-28 17:33 bobo哥 阅读(1979) 评论(0) 推荐(0)
摘要: 源程序: #include <iostream>using namespace std; class birth{private: int year,month,day;public: birth(int x,int y,int z) { year=x; month=y; day=z; } void 阅读全文
posted @ 2022-03-27 11:36 bobo哥 阅读(50) 评论(0) 推荐(0)
摘要: 源程序: #include <iostream>using namespace std; void sort(int L[],int n){ int j,k,flag,temp; flag=n-1; while(flag>0) { k=flag-1; flag=0; for(j=0;j<=k;j++ 阅读全文
posted @ 2022-03-27 11:18 bobo哥 阅读(73) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 54 下一页