上一页 1 ··· 73 74 75 76 77 78 79 80 81 ··· 186 下一页
摘要: #include <stdio.h> //程序功能:求s=2+4+6+8+...+100 并输出结果 //【】位置需要填写相应内容,保证程序能正常运行,无警告提示。 main() { 【1】; for(;a<=【2】;a++) { s=【3】; 【4】 } printf("s=%d\n",【5】); 阅读全文
posted @ 2023-02-07 19:32 myrj 阅读(163) 评论(0) 推荐(0)
摘要: /* 下列程序的功能为:实现加、减、乘、除四则运算。*/ //【1】【2】【3】【4】【5】【6】【7】【8】【9】【10】 #include <stdio.h> void main() { int a,b,d; char ch; printf("Please input a expression: 阅读全文
posted @ 2023-02-07 18:54 myrj 阅读(176) 评论(0) 推荐(0)
摘要: /* 程序的功能为:判断从键盘上输入的一个字符,并按下列要求输出。 若该字符是数字 输出字符串"0-9" 若该字符是大写字母 输出字符串"A-Z" 若该字符是小写字母 输出字符串"a-z" 若该字符是其他字符 输出字符串"!,@,…" */ #include <stdio.h> void main( 阅读全文
posted @ 2023-02-07 18:46 myrj 阅读(378) 评论(0) 推荐(0)
摘要: #include <stdio.h> //程序功能:输入一个6*6矩阵,将其主对角线上的元素置1,次对角线置-1,其余元素为0 main() { int 【1】; int i,j; for(i=0;【2】;i++) { 【3】=1; 【4】=-1; } for(i=0;i<=5;i++) { for 阅读全文
posted @ 2023-02-07 17:16 myrj 阅读(486) 评论(0) 推荐(0)
摘要: #include <stdio.h> //程序功能:输入一行字符,分别统计其中英文字母、数字和其他字符的个数 main() { char c; int i=0,j=0,k=0; while(【1】) { if(c>='0' && c<='9') 【2】; else if(【3】) j++; else 阅读全文
posted @ 2023-02-07 17:12 myrj 阅读(201) 评论(0) 推荐(0)
摘要: #include <stdio.h> //程序功能:求s=1+2+3+4+5+....+100 //【】位置需要填写相应内容,保证程序能正常运行,无警告提示。 main() { 【1】; for(a=1;a<=【2】;a++) s=【3】; printf("s=%d\n",【4】); getchar 阅读全文
posted @ 2023-02-07 14:41 myrj 阅读(121) 评论(0) 推荐(0)
摘要: //交换任意两个整型变量的值 //【】位置需要填写相应内容,保证程序能正常运行,无警告提示。 【1】 main() { int a=1,b=2; printf("a=%d,b=%d\n",a,b); a=【2】; b=【3】; a=【4】; printf("a=%d,b=%d\n",a,b); ge 阅读全文
posted @ 2023-02-07 14:35 myrj 阅读(89) 评论(0) 推荐(0)
摘要: Python使用requests時遇到Failed to establish a new connection解决方法:但是程式邏輯的關係我會在短時間使用多次requests.post其結果就是跳出了Failed to establish a new connection這樣一個錯誤google一下 阅读全文
posted @ 2023-02-07 08:51 myrj 阅读(1325) 评论(0) 推荐(0)
摘要: CFPS计算分性别家庭子女数根据fid18分组,增加变量 male_size,其值为根据fid18分组,gender_update=1的总数(fid18为家庭编号,家庭编号相同则为同一家庭)egen male_size=count(fid18) if gender_update==1,by(fid1 阅读全文
posted @ 2023-02-06 21:13 myrj 阅读(721) 评论(0) 推荐(0)
摘要: #include <stdio.h> //任意整型数组,由连续几个数组成,少其中一个数,利用程序求出少得数 main() { int a[5]={0,2,4,1},x=0,i; for(i=0;i<4;i++) x^=a[i]; for(i=0;i<=4;i++) x^=i; printf("%d" 阅读全文
posted @ 2023-02-06 21:11 myrj 阅读(30) 评论(0) 推荐(0)
上一页 1 ··· 73 74 75 76 77 78 79 80 81 ··· 186 下一页