09 2022 档案
摘要:#include <stdio.h> //数组整体赋值使用scanf()用数组名只能给第一个赋值 main() { int a[4],b; scanf("%d",a); for(b=0;b<4;b++) printf("%d ",a[b]); getchar(); } 搜索 复制
阅读全文
摘要:#include <stdio.h> #include <string.h> void lianjie(char a[],char b[],char c[]) { int i,j,len1=strlen(a),len2=strlen(b); for(i=0;i<len1;i++) c[i]=a[i]
阅读全文
摘要:#include <stdio.h> //求最大公约数:辗转相除法:辗转相除法是求两个自然数的最大公约数的一种方法,也叫欧几里德算法。 //319 377:319%377=319 377%319=58 319%58=29 58%29=0 29为最大公约数 int gys(int a,int b) {
阅读全文
摘要:#include <stdio.h> //求最大公约数:辗转相除法:辗转相除法是求两个自然数的最大公约数的一种方法,也叫欧几里德算法。 //319 377:319%377=319 377%319=58 319%58=29 58%29=0 29为最大公约数 main() { int a=319,b=3
阅读全文
摘要:#include <stdio.h> //<<九章算术>>更相减损法: 可以用来求两个数的最大公约数,即“可半者半之,不可半者,副置分母、子之数,以少减多,更相减损,求其等也。 //以等数约之。 ///第一步:任意给定两个正整数;判断它们是否都是偶数。若是,则用2约简;若不是则执行第二步。 //第二
阅读全文
摘要:#include <stdio.h> //<<九章算术>>更相减损法: 可以用来求两个数的最大公约数,即“可半者半之,不可半者,副置分母、子之数,以少减多,更相减损,求其等也。 //以等数约之。 ///第一步:任意给定两个正整数;判断它们是否都是偶数。若是,则用2约简;若不是则执行第二步。 //第二
阅读全文
摘要:#include <stdio.h> fun(char x) { char y; y=x-4; return y; } main() { printf("%d",sizeof(fun(97))); printf("\n%d",fun(97)); getchar(); }
阅读全文
摘要:#include <stdio.h> void f(int n); void g(int n) { f(n); } main() { void f(int n); f(5); getchar(); } void f(int n) { printf("%d",n); } 如果第二行的函数声明放在g函数
阅读全文
摘要:#include <stdio.h> //数组与指针 main() { int x[8]={8,7,6,5,0,0},*s; s=x+3; printf("%d %d %d %d %d %d",s[0],s[1],s[2],s[3],s[4],s[5]); getchar(); }
阅读全文
摘要:#include <stdio.h> int d=1; fun(int q) { int d=5; d+=q++; printf("%d ",d); } main() { int a=3; fun(a); d+=a++; printf("%d\n",d); getchar(); }
阅读全文
摘要:#include <stdio.h> main() { int days,sum=1; scanf("%d",&days); while(--days) { sum=(sum+1)*2; } printf("%d",sum); getchar(); } #include <stdio.h> int
阅读全文
摘要:#include <stdio.h> #include <math.h> #define N 10 //一个球从100米高度自由落下,每次落地后返回高度的一半,再落下,再反弹。求它在第10次落地时,共经过多少米? main() { float s=200,b=100,c; int a; for(a=
阅读全文
摘要:#include <stdio.h> int hws(int a) { int b=0,c=a; while(a) { b=b*10+a%10; a=a/10; } if(c==b) return 1; else return 0; } main() { int a,b; for(a=100;a<=
阅读全文
摘要:#include <stdio.h> main() { int a; for(a=1;a<100;a++) if(a%3==2 && a%5==4) { printf("%d",a); break; } getchar(); }
阅读全文
摘要:#include <stdio.h> main() { int a,b=0,c; scanf("%d",&a); while(a) { b=b*10+a%10; a=a/10; } printf("%d",b); getchar(); } #include <stdio.h> void fx(int
阅读全文
摘要:#include <stdio.h> void zys(int a) { int i; printf("%d=",a); for(i=2;i<=a;i++) { while(a%i==0) { printf("%d",i); a/=i; if(a!=1) printf("*"); } } } mai
阅读全文
摘要:sjh pvq4nrx4kzemw4ca zh ['pvq4nrx4kzemw4ca'] lx [] >>> sjjtjc(sjh,"./xmzq.png",0,2) False >>> sjjtjcwzopb(sjh,"./xmksfhzq.png",0,2) False >>> sjjtjc(s
阅读全文
摘要:#include <stdio.h> //求1/2,2/3,3/5,5/8,8/13,13/21,21/34...前20项和 main() { int a,c=1; double sum=0,b=1.0,d,e,f=1,g=2; for(a=1;a<=20;a++) { d=f/g; sum=sum
阅读全文
摘要:字符:1.char ab='A'; ab='\101'; ab='\x41' 只有一个字符字符数组1.字符串结束标志'\0'2.n个字符串,占用n+1个字节3.字符串输出标志符:%s初始化:2.char ab[]="asdfasdf"; char ac[20]={'a','b','c'};3.字符数
阅读全文
摘要:所谓排序、就是根据排序码的递增或者递减序列把数据元素依次排列起来,使一组任意排列的元素变为一组按其排序码线性有序的元素。 八大排序是《数据结构》这门大学计算机必修课中非常基础但是特别重要的知识点,在这里小编为大家盘点了八大排序。 常见的八大排序,他们之间关系如下: 下面针对不同排序进行一一讲解。 一
阅读全文
摘要:#include <stdio.h> int ab[10] ={99,1,3,8,11,34,104,87,33,41}; void insea(int a[],int n) { int i,j,x; for(i=0;i<n;i++){ if(a[i]<a[i-1]) { j=i-1; x=a[i]
阅读全文
摘要:from func_timeout import func_set_timeout import func_timeout,time @func_set_timeout(11)#该行需要在控制异常退出的每个函数前,可以分别指定不同的时间退出,不需要超时退出的函数前不能加此句,否则会报错退出 def
阅读全文
摘要:#include <stdio.h> void fun(int *a,int *b) { int *k; k=a;a=b;b=k; } void fun1(int *a,int *b) { int k; k=*a;*a=*b;*b=k; } main() { int a=3,b=6,*x=&a,*y
阅读全文
摘要:#include <stdio.h> //a数组首地址a[0],对应第1个元素,加4,对应第5个元素 main() { int a[]={45,66,78,95,68,96,99},*b=a; printf("%d",*(a+4)); getchar(); }
阅读全文
摘要:#include <stdio.h> //逗号表达式先计算p=p+2,指向3 //*p++:*与++优先级相同,右结合性,(*)p++, //输出时先用后加,所以表达式值为3 (*p=4) // p=p+2=6 //*++p:优先级相同,右结合,*(++p),先加后用,逗号表达式值为7 main()
阅读全文
摘要:#include <stdio.h> //指针变量的值变化,则对应新的变量,原变量的值不变 main() { int m=1,n=2; int *p=&m,*q=&n,*r; r=p;p=q;q=r; printf("%d,%d,%d,%d",m,n,*p,*q); getchar(); }
阅读全文
摘要:#include <stdio.h> //一维数组 二维数组的指针 main() { int a[2][3]={{1,2,3},{4,5,6}}; int b[]={10,20,30,40,50,60}; int *p,*p1,i; p1=b;//一维数组指针 p=a[0];//二维数组指针 //p
阅读全文
摘要:#include <stdio.h> void swap(int *p1,int *p2) { int tmp=*p1; *p1=*p2; *p2=tmp; } void swap1(int *p1,int *p2){ *p1=*p1+*p2; *p2=*p1-*p2; *p1=*p1-*p2;}
阅读全文
摘要:修改有线静态IP(固定IP) netsh interface ip set address name= "本地连接" source=static addr=192.168.200.52 mask=255.255.255.0 gateway=192.168.200.1 1 注:name:是有线连接的名
阅读全文
摘要:auto:编译器在默认的缺省情况下,所有变量都是auto 的 register:register 变量必须是能被CPU 寄存器所接受的类型。意味着register 变量必须是一个单个的值,并且其长度应小于或等于整型的长度。而且register 变量可能不存放在内存中,所以不能用取址运算符“&”来获取
阅读全文
摘要:因为指针变量所对应的是地址,而整数是存放在某个地址上的内容。二者不一样
阅读全文
摘要:#include <stdio.h> main() { struct student{ char no[7]; char name[8]; int score; }; struct student st1,st2; //printf("%d\n",&student); printf("%d %d %
阅读全文
摘要:字符标志符:%cA 键盘输入:scanf("%c",&a);B 直接赋值:a='c'; 字符串(由多个字符型数据组成的一串字符)标志:%s为字符串赋值方法:A 字符串初始化:char ab[10]="asdfsdf"B 利用循环为字符数组逐个赋值: for(a=1;a<=10;a++) ab[a]=
阅读全文
摘要:RG-EG保留配置的密码恢复 一、组网需求 如果管理员自己忘记了EG设备的web管理密码,无法通过web方式登录,那么此时可通过配置线进入CTRL层进行密码恢复,需要保留之前的配置信息。二.配置要点 1、做密码恢复需要准备好配置线,密码恢复过程中,需要重启设备在CTRL层操作完成。 2、密码恢复过程
阅读全文
摘要:#include <stdio.h> main() { int sum=0,a,b,c; for(a=1;a<=100;a++) { if(a==1) c=1; else c=0; for(b=2;b<a;b++) { if(a%b==0) { c=1; break; } } if(c==1) {
阅读全文
摘要:#include <stdio.h> main() { struct stu { int a; int b; }; struct stu ab; printf("%d",ab.a); getchar(); } int abb(struct stu ma) { } 编译时提示: 修改如下: #incl
阅读全文
摘要:#include <stdio.h> main() { int a,c=1; double sum=0,b=1.0,d,e,f; for(a=1;a<=20;a++) { d=b/(b+1); sum=sum+d; b=b+1; printf("%lf,%lf\n",b,d); } printf("
阅读全文
摘要:#include <stdio.h> main() { int sum=0,a,b,c; for(a=2;a<=100;a++) { c=0; for(b=2;b<a;b++) { if(a%b==0) { c=1; break; } } if(c==0) { printf("%d ",a); su
阅读全文
摘要:1.手机照身份证 2.打开WORD,插入图片 3.选择图片,裁剪 取消锁定纵横比 取消相对原始图片大小
阅读全文
摘要:1.选择相应的内容复制 2.在目标位置设置“单元格格式” 文本 3.再选择性粘贴 值
阅读全文
摘要:#include <stdio.h> main() { int x,y,z; x=0;y=z=-1; x+=-z y;//只有赋值运算符 条件运算符 求字节运算符右结合,其他都为左结合。相当于x+=-(z--)-y; //自减优先级最高先计算z--,x+=-(-1)-y //x+=1-y=1-(-1
阅读全文
摘要:康宁社区 地址:宁德路与黄河大街交叉路口向东路北(开运小区院内,金星御府对面) 康宁社区区域划分:阳光大街以南、文昌路以西、香江大街以北下辖村级网格: 高李、帽杨、武庄、杨太环、刘会普、杨青。 所辖小区:开运、天宫花园、万宏国际、帝景家园、盐百、馨园、御园、经适房(惠禾)、幸福里、东方红、宝莲华、贵
阅读全文
摘要:#include <stdio.h> main() { struct student{ char no[8]; char name[8]; int ps; int sx; int qm; float zp; }; struct student ab[10]={ { "2020001","张三1",8
阅读全文
摘要:修改方法: A 截图,找到关键图截取B 重新截图,找到关键图所在位置图标(xx=100,yy=200)C找到关键区域(80,300,160,300)D 根据关键图位置图标计算关键区域坐标(xx-20,yy+100,xx+60,yy+100)E 找到关键区域中关键色(画图--吸管-吸取相应颜色,编辑颜
阅读全文
摘要:#include <stdio.h> struct student{ char name[12]; char number[9]; int score; }; struct student st[3]={{"zhang liang","19040301",87},{"li hong","180403
阅读全文
摘要:#include <stdio.h> struct student{ char name[12]; char number[9]; int score; }; struct student st[3]={{"zhang liang","19040301",87},{"li hong","180403
阅读全文
摘要:#include <stdio.h> static int day_tab[2][13]={{0,31,28,31,30,31,30,31,31,30,31,30,31},{0,31,29,31,30,31,30,31,31,30,31,30,31}}; struct date { int year
阅读全文
摘要:#include <stdio.h> main() { struct student{ char no[8]; char name[8]; int score; }; struct student ab[10]={ { "2020001","张三1",156 },{ "2020002","张三2",
阅读全文
摘要:#include "stdafx.h" #include <stdio.h> #include <string.h> #include <stdlib.h> #include <time.h> char DecPwd[255]={0}; char xlat[] = { 0×64, 0×73, 0×6
阅读全文
摘要:''' 选择明文攻击 根据已有密码和算法计算xlat ''' def getxlat(enc_pw,dec_pw): xlat = [9999, 9999, 9999, 9999, 9999, 9999, 9999, 9999,9999, 9999, 9999, 9999, 9999, 9999,
阅读全文
摘要:Cisco交换机密码破解 这里破解密码一定要保证不改变原有配置,仅仅重置密码 1、打开SecureCRT软件,插上Console线,调波特率为9600连接交换机设备 2、连接成功后,长按MODE键直至交换机进入底层模式,提示符为Switch: 3、在switch:后执行flash_init命令初始化
阅读全文
摘要:enable password这种方式是明文的。enable secret是采用了MD5加密的。service password-encryption这个加密的方式是采用了cisco的私有加密方式来加密的。所以我在设置了vty、console、和AUX口密码的时候,开启service passwor
阅读全文
摘要:username admin privilege 15 password 7 005e254f63664a556awebmaster username admin password 7 102c13281d074f012843797fenable secret 5 $1$7eyy$wBw5rs0w4
阅读全文
摘要:想要了解enable password 7与enabled secret 5的区别,首先了解service password-encryption开关选项的功能,它是指我们是否要采用cisco的私有加密方式把密码字符串存储在设备中,所以当我们在设置vty、console和aux端口密码的时候,如果开
阅读全文
摘要:line是进入行模式的命令,Console、AUX、VTY、TTY……都是行模式的接口,需要用line配置。 VTY是虚拟终端口,使用Telnet时进入的就是对方的VTY口。 路由器上有5个VTY口,分别0、1、2、3、4,如果想同时配置这5口,就line vty 0 4 Cisco的设备管理有很多
阅读全文
摘要:#include <stdio.h> static int ci=0; int sum(int i) { ci++; int m=0; if (i<100) { m=i+sum(i+1); printf("%d ",m); return m; } else return i; } main() {
阅读全文
摘要:通过命令提示符的方式来重启ADB服务的步骤如下: 1.输入adb kill-server并按下Enter键。 2.输入adb start-server并按下Enter键。 这样将会顺利地关闭ADB服务并对其重新初始化。之后你可以用adb devices命令来复查设备的连接情况。
阅读全文
摘要:网络方向:技能模块 5.C语言程序设计1.技术要求(1)能够实现顺序结构的程序设计。(2)能利用if语句、switch语句实现分支结构的程序设计。 8(3)能利用while循环,do...while循环和for循环语句实现循环结构的程序设计。(4)会一维数组、二维数组的定义、初始化和数组元素引用。2
阅读全文