上一页 1 ··· 95 96 97 98 99 100 101 102 103 ··· 188 下一页
摘要: auto:编译器在默认的缺省情况下,所有变量都是auto 的 register:register 变量必须是能被CPU 寄存器所接受的类型。意味着register 变量必须是一个单个的值,并且其长度应小于或等于整型的长度。而且register 变量可能不存放在内存中,所以不能用取址运算符“&”来获取 阅读全文
posted @ 2022-09-17 15:17 myrj 阅读(44) 评论(0) 推荐(0)
摘要: 因为指针变量所对应的是地址,而整数是存放在某个地址上的内容。二者不一样 阅读全文
posted @ 2022-09-17 15:09 myrj 阅读(156) 评论(0) 推荐(0)
摘要: #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 % 阅读全文
posted @ 2022-09-17 10:43 myrj 阅读(329) 评论(0) 推荐(0)
摘要: 字符标志符:%cA 键盘输入:scanf("%c",&a);B 直接赋值:a='c'; 字符串(由多个字符型数据组成的一串字符)标志:%s为字符串赋值方法:A 字符串初始化:char ab[10]="asdfsdf"B 利用循环为字符数组逐个赋值: for(a=1;a<=10;a++) ab[a]= 阅读全文
posted @ 2022-09-17 07:38 myrj 阅读(136) 评论(0) 推荐(0)
摘要: RG-EG保留配置的密码恢复 一、组网需求 如果管理员自己忘记了EG设备的web管理密码,无法通过web方式登录,那么此时可通过配置线进入CTRL层进行密码恢复,需要保留之前的配置信息。二.配置要点 1、做密码恢复需要准备好配置线,密码恢复过程中,需要重启设备在CTRL层操作完成。 2、密码恢复过程 阅读全文
posted @ 2022-09-17 07:02 myrj 阅读(2557) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-09-16 18:44 myrj 阅读(12) 评论(0) 推荐(0)
摘要: #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) { 阅读全文
posted @ 2022-09-16 16:28 myrj 阅读(497) 评论(0) 推荐(0)
摘要: #include <stdio.h> main() { struct stu { int a; int b; }; struct stu ab; printf("%d",ab.a); getchar(); } int abb(struct stu ma) { } 编译时提示: 修改如下: #incl 阅读全文
posted @ 2022-09-15 16:29 myrj 阅读(156) 评论(0) 推荐(0)
摘要: #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(" 阅读全文
posted @ 2022-09-15 10:39 myrj 阅读(221) 评论(0) 推荐(0)
摘要: #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 阅读全文
posted @ 2022-09-15 09:50 myrj 阅读(506) 评论(0) 推荐(0)
上一页 1 ··· 95 96 97 98 99 100 101 102 103 ··· 188 下一页