- 博客(10)
- 资源 (3)
- 收藏
- 关注
原创 判断一个整数是否是回文数
问题:输入一个整数(10位以内,也可自己改用更多位,需要修改类型),判断是否是回文数。 #include<stdio.h> char palindromes_number(unsigned int number); int main(void) { unsigned int number = 0; printf("请输入一个整数(小于10位):"); scanf("%u"...
2019-07-24 11:04:12
858
原创 交换机划分Vlan配置
交换机划分Vlan配置 Switch0 Switch> Switch>en Switch#conf t Switch(config)#int fa 0/1 Switch(config-if)#switchport access vlan 2 Switch(config-if)#exit Switch(config)#int fa 0/2 Switch(config-if)#switc...
2019-07-19 15:22:18
395
原创 c语言猴子吃桃问题
思路:逆向思考,将第十天看成第一天,将n = n / 2 -1变成 n = 2 * (n + 1) 函数功能: 猴子吃桃问题 函数形参: None 函数返回值: 0 成功 非0 失败 备注: None #include<stdio.h> int main() { int n = 1, i = 0; for(i = 1;i <= 10;i++) //偷到...
2019-07-18 10:31:04
619
原创 用c语言实现斐波拉契数列
函数功能: 斐波拉契数列 函数形参: None 函数返回值: 0 成功 非0 失败 *备注: 用while循环实现,注意new1的值会溢出,可改用long long new1 #include<stdio.h> int main() { int old = 1,old1 = 0, new1 = 1, i = 0, n = 0; /*old是前一项,old1是...
2019-07-17 12:01:53
2221
原创 路由器单臂路由配置(扩展版)
实验4:路由器单臂路由配置(扩展版) Router0 Router> Router>en Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#int fa 0/0 Router(config-if)#no shut Router(config-if)#no ...
2019-07-13 16:22:51
430
原创 路由器静态路由配置(扩展版)
实验5:路由器静态路由配置(扩展版) Switch0 Switch> Switch>en Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#int fa 0/1 Switch(config-if)#switchport mode trunk Switch(...
2019-07-13 16:10:12
614
原创 路由器RIP动态路由配置(扩展版)
实验6:路由器RIP动态路由配置(扩展版) Multilayer Switch0 Switch> Switch>en Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#ip routing Switch(config)#int fa 0/1 Switch(...
2019-07-13 15:18:36
303
原创 路由器OSPF动态路由配置(扩展版)
实验7:路由器OSPF动态路由配置(扩展版) Multilayer Switch0 Switch> Switch>en Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#int fa 0/4 Switch(config-if)#switchport acc...
2019-07-13 14:59:54
446
原创 利用三层交换机实现VLAN间路由(扩展版)
实验3:利用三层交换机实现VLAN间路由(扩展版) Multilayer Switch0 Switch> Switch>en Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#ip routing Switch(config)#int fa 0/1 Swi...
2019-06-18 22:32:14
759
1
原创 telnet远程登录管理二层交换机的配置
telnet远程登录管理二层交换机的配置(扩展版) Multilayer Switch1 Switch> Switch>en Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#vlan 10 Switch(config-vlan)#exit Switch(...
2019-06-18 22:17:38
6167
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人