2023年7月15日

摘要: ![](https://img2023.cnblogs.com/blog/2700135/202307/2700135-20230715234856833-1607321025.png) 阅读全文

posted @ 2023-07-15 23:50 Astro_Leon 阅读(18) 评论(0) 推荐(0) 编辑

2023年1月16日

摘要: abc -->abcabc 扩大两倍即可实现 阅读全文

posted @ 2023-01-16 15:45 Astro_Leon 阅读(13) 评论(0) 推荐(0) 编辑

2022年5月4日

摘要: #include<stdio.h> #include<string.h> int fun(int n,int c)//这个是求每一位对应的十进制是多少 { if (c == 0) return n; else return n= fun(n, c - 1)*16; } int main() { ch 阅读全文

posted @ 2022-05-04 20:04 Astro_Leon 阅读(93) 评论(0) 推荐(0) 编辑

2022年4月24日

摘要: int main() { int y = 3, a = 2; //k = fun(i / 2); while (y-- != -1)//这里执行了两次 虽然最后一次条件是假了 也得执行 { do { a *= y; a++; } while (y--);//这里也是一样 } printf("%d,% 阅读全文

posted @ 2022-04-24 19:28 Astro_Leon 阅读(300) 评论(0) 推荐(0) 编辑

2022年4月22日

摘要: #include <stdio.h> #include<math.h> #include<string.h> int main() { char a[3][5] = { "123","234","345" }; for(int i=0;i<3;i++) for (int j = i; j < 3; 阅读全文

posted @ 2022-04-22 16:22 Astro_Leon 阅读(235) 评论(0) 推荐(0) 编辑

2022年3月27日

摘要: #include<stdio.h> #include<string.h> //10.04 struct student { char name[10]; int num; int score; }; int main() { struct student stu[5] = { {"bangyan", 阅读全文

posted @ 2022-03-27 16:05 Astro_Leon 阅读(315) 评论(0) 推荐(0) 编辑

2022年3月24日

摘要: 1 #include<stdio.h> 2 3 int isprime(int n)//判断素数 4 { 5 int k = 0; 6 for (int i=2;i<n/2;i++) 7 { 8 if (n % i== 0) 9 { 10 k++;//如果发生相加,则说明不是素数 11 break; 阅读全文

posted @ 2022-03-24 00:52 Astro_Leon 阅读(350) 评论(0) 推荐(0) 编辑

2022年2月23日

摘要: #include<stdio.h> int main() { char *p,a[6]="556"; p=a; int n= *p-'0'; while(*(++p)!='\0') { n=n*8+*p-'0'; } printf("%d",n); return 0; } 阅读全文

posted @ 2022-02-23 00:09 Astro_Leon 阅读(117) 评论(0) 推荐(0) 编辑

2022年1月8日

摘要: #include<stdio.h> int main() { int j,f=0; for(int i=100;i<=200;i++) { for(j=2;j<i/2;j++) { if(i%j==0) break; } if(j==i/2) {printf("%-5d",i);//输出素数 f++ 阅读全文

posted @ 2022-01-08 16:07 Astro_Leon 阅读(613) 评论(0) 推荐(0) 编辑

2021年12月23日

摘要: ;定义N为同学很有意思 DATA SEGMENT SCORE DB 34,5,7,8,23 N= $-SOCRE DATA ENDS ;最高分部分代码 MOV CX,5 MOV AL,[SI];里面存放是的数组的首地址 NEXT: CMP AL,[SI] JAE P1;如果al里面存放的是最大值,跳 阅读全文

posted @ 2021-12-23 23:43 Astro_Leon 阅读(59) 评论(0) 推荐(0) 编辑