摘要: Sub CheckTableCells() Application.DisplayAlerts = False Dim sht As Worksheet Dim i, j As Integer For i = 1 To 284 If (Range("e" & i).Value = "") Then 阅读全文
posted @ 2023-02-17 22:12 myrj 阅读(169) 评论(0) 推荐(0) 编辑
摘要: stata变量名特别多,des显示不完整,只能看到最后一部分解决方法:第一步: ssc install des2 log using exam22a,replace text des2(显示结果复制,自动成表格,EXCEL粘贴形成表格) log close第二步:打开exam22a.log选择并复制 阅读全文
posted @ 2023-02-17 22:03 myrj 阅读(507) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdlib.h> #include <time.h> int main() { int a,b; srand((unsigned)time(NULL)); for(b=1;b<=100;b++) a = rand(), printf("%6 阅读全文
posted @ 2023-02-17 20:37 myrj 阅读(15) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> //从键盘输入10个整数,输出这10个数的最大值 最小值 平均值 main() { int cj[10],min,max,aver,n; for(n=0;【1】;n++) scanf("%d",【2】) ; 【3】cj[0]; for(n=1;n<10;n++) 阅读全文
posted @ 2023-02-17 16:39 myrj 阅读(1571) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> //将数组中的值降序排序并输出 main() { int a[10]={12,3,5,78,98,345,23,35,67,99}; int i,j,k,t; for(i=0;【1】;i++) { 【2】; for(j=i+1;j<10;j++) if(【3】) 阅读全文
posted @ 2023-02-17 16:28 myrj 阅读(87) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> //从键盘输入一个十进制整数,输出其二进制数 main() { int x[10],n,i,j; 【1】; scanf("%d",&n); while(【2】 { 【3】; n=【4】; 【5】; } for(【6】;j>=0;j--) printf("%d", 阅读全文
posted @ 2023-02-17 16:17 myrj 阅读(376) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> //输出1-100间的所有除3余1且除5余2的数,每行2个 【1】 { int i,k; 【2】; for(i=1;i<=100;i++) if(【3】) { printf("%5d",i); 【4】; if(【5】) printf("\n"); } getch 阅读全文
posted @ 2023-02-17 16:11 myrj 阅读(112) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> //输入10个学生成绩,统计高于平均分的人数 main() { 【1】 a[10],sum=【2】,pjz; 【3】 b; for(b=0;b<10;b++) { scanf("%f",【4】); sum=【5】; } pjz=【6】; 【7】; for(b=0 阅读全文
posted @ 2023-02-17 16:05 myrj 阅读(583) 评论(0) 推荐(0) 编辑
摘要: 【1】 <stdio.h> //程序输出结果:3,2,2,3 【2】 fun(【3】 x,int y) { x=【4】; y=x-y; x=x-y; printf("【5】",x,y); } main() { int x=2,y=3; fun(x,y); printf("【6】",x,y); get 阅读全文
posted @ 2023-02-17 14:51 myrj 阅读(33) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> //输出100-200间所有的素数,且一行只打印7个数 main() { int num,i,t,count; 【1】; for(num=100;num<=200;num++) { 【1】; for(i=2;i<=num-1;i++) if(【1】) { t=0 阅读全文
posted @ 2023-02-17 14:46 myrj 阅读(380) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> //补充程序使输出结果是1,2,6,24,120 【1】 ff(int n) { 【2】 int f=1; f=【3】; return f; } main() { int i; for(i=1;【4】;i++) printf("%d,",【5】); printf 阅读全文
posted @ 2023-02-17 14:39 myrj 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 【1】 //全局变量与局部变量的使用 【2】d=1; 【3】 fun(int 【4】) { int d=5; d+=p++; printf("%d ",d); } main() { int a=3; 【5】;//以a为参数调用fun函数 d+=a++; printf("%d ",d); getcha 阅读全文
posted @ 2023-02-17 14:30 myrj 阅读(23) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> //根据学生成绩输出评定等级。成绩为90-100分输出“A",成绩为80-89分输出"B" // 成绩为70-79分输出"C",成绩为60-69分输出"D",否则输出”E" main() { int cj;【1】; printf("please input st 阅读全文
posted @ 2023-02-17 14:21 myrj 阅读(282) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> //任意输入两个整数,输出这两个数的最大公约数和最小公倍数 main() { int a,b,c,gys,gbs; scanf("%d%d",&a,&b) ; for(c=a;【1】;c--) { if(【2】) { gys=【3】; 【4】; } } gbs= 阅读全文
posted @ 2023-02-17 11:36 myrj 阅读(80) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <math.h> //根据输入的三角形的三条边判断能否组成三角形,并判断三角形的类型,并输出其面积 //三角形类型区分等边 等腰 等腰直角 直角三角形 main() { float a,b,c,mj,p; scanf("%f%f%f",&a,& 阅读全文
posted @ 2023-02-17 10:33 myrj 阅读(763) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> //输出1980-2020年之间所有的闰年,每行三个 main() { int year,【1】,b; for(year=1980;year<=2020;year++) { 【2】; if(【3】) { printf("%5d",year); count++; 阅读全文
posted @ 2023-02-17 10:08 myrj 阅读(484) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> //用来统计输入的字符中所有大写字母的个数,用#结束输入 main() { int a[26],i; char ch; for(i=0;i<26;i++) a[i]=【1】; ch=getchar(); while(【2】) { if(ch>=65&&ch<=9 阅读全文
posted @ 2023-02-17 09:48 myrj 阅读(280) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> //功能:从键盘输入一个整数,如果不高于9999则逆序输出,否则打印“输入范围错误" main() { 【1】; 【2】; if(x<=9999) do{ printf("%d",【3】); 【4】; }【5】 else printf("输入范围错误"); ge 阅读全文
posted @ 2023-02-17 09:34 myrj 阅读(36) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> //功能:从键盘上输入若干学生的成绩,统计并输出最高成绩和最低成绩 //当输入负数时结束输入,请将程序补充完整 main() { float x,amax,amin; scanf("%f",【1】) ; amax=x; amin=x; while(【2】) { 阅读全文
posted @ 2023-02-17 09:27 myrj 阅读(124) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> //求s=1-3+5-7+...-99+101并输出 main() { int i,t=1,【1】; for(i=1;【2】;【3】) { s=【4】; t=【5】; } printf("s=%d\n",s); getchar(); } 求s=1-3+5-7+. 阅读全文
posted @ 2023-02-17 09:18 myrj 阅读(289) 评论(0) 推荐(0) 编辑