- 博客(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 814
原创 交换机划分Vlan配置
交换机划分Vlan配置Switch0Switch>Switch>enSwitch#conf tSwitch(config)#int fa 0/1Switch(config-if)#switchport access vlan 2Switch(config-if)#exitSwitch(config)#int fa 0/2Switch(config-if)#switc...
2019-07-19 15:22:18 306
原创 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 547
原创 用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 2125
原创 路由器单臂路由配置(扩展版)
实验4:路由器单臂路由配置(扩展版)Router0Router>Router>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#int fa 0/0Router(config-if)#no shutRouter(config-if)#no ...
2019-07-13 16:22:51 362
原创 路由器静态路由配置(扩展版)
实验5:路由器静态路由配置(扩展版)Switch0Switch>Switch>enSwitch#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#int fa 0/1Switch(config-if)#switchport mode trunkSwitch(...
2019-07-13 16:10:12 531
原创 路由器RIP动态路由配置(扩展版)
实验6:路由器RIP动态路由配置(扩展版)Multilayer Switch0Switch>Switch>enSwitch#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#ip routingSwitch(config)#int fa 0/1Switch(...
2019-07-13 15:18:36 259
原创 路由器OSPF动态路由配置(扩展版)
实验7:路由器OSPF动态路由配置(扩展版)Multilayer Switch0Switch>Switch>enSwitch#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#int fa 0/4Switch(config-if)#switchport acc...
2019-07-13 14:59:54 406
原创 利用三层交换机实现VLAN间路由(扩展版)
实验3:利用三层交换机实现VLAN间路由(扩展版)Multilayer Switch0Switch>Switch>enSwitch#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#ip routingSwitch(config)#int fa 0/1Swi...
2019-06-18 22:32:14 692 1
原创 telnet远程登录管理二层交换机的配置
telnet远程登录管理二层交换机的配置(扩展版)Multilayer Switch1Switch>Switch>enSwitch#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#vlan 10Switch(config-vlan)#exitSwitch(...
2019-06-18 22:17:38 5844
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人