08 2024 档案

摘要:#include<stdio.h>int main(void){ int x=1,a=0,b=0; switch(x){ case 0:b++; case 1:a++; case 2:a++;b++; } printf("%d %d",a,b); return 0;} 阅读全文
posted @ 2024-08-23 21:52 Grit_Doyle 阅读(5) 评论(0) 推荐(0) 编辑
摘要:#include<stdio.h>int main(void){ int choice,i; double price; for(i=1;i<=5;i++){ printf("[1]Select crisps\n"); printf("[2]Select popcorn\n"); printf("[ 阅读全文
posted @ 2024-08-23 21:52 Grit_Doyle 阅读(47) 评论(0) 推荐(0) 编辑
摘要:#include<stdio.h>int main() { int i1,i2,i3; scanf("%d %d %d",&i1,&i2,&i3); if(i1>=i2&&i2>=i3) printf("%d %d %d",i3,i2,i1); if(i1>=i3&&i3>=i2) printf(" 阅读全文
posted @ 2024-08-23 21:51 Grit_Doyle 阅读(10) 评论(0) 推荐(0) 编辑
摘要:#include<stdio.h>int main(){ double limit; scanf("%lf",&limit); if(limit>0.1&&limit<=0.5) printf("罚款200元"); else if(limit>0.5) printf("吊销驾照"); return 阅读全文
posted @ 2024-08-23 21:51 Grit_Doyle 阅读(11) 评论(0) 推荐(0) 编辑
摘要:#include<stdio.h>int main(void){ int counter,i,n; double grade,total; printf("Enter n:"); scanf("%d",&n); total=0; counter=0; for(i=1;i<=n;i++){ print 阅读全文
posted @ 2024-08-23 21:50 Grit_Doyle 阅读(18) 评论(0) 推荐(0) 编辑
摘要:#include<stdio.h>int main(){ int n,score,i; printf("输入学生人数:"); scanf("%d",&n); for(i=1;i<=n;i++){ printf("输入第%d个学生的分数:",i); scanf("%d",&score); if(sco 阅读全文
posted @ 2024-08-23 21:50 Grit_Doyle 阅读(11) 评论(0) 推荐(0) 编辑
摘要:#include<stdio.h>int main(void){ char ch; printf("Enter a character:"); ch=getchar(); putchar(ch); putchar('?'); return 0;} 阅读全文
posted @ 2024-08-23 21:48 Grit_Doyle 阅读(4) 评论(0) 推荐(0) 编辑
摘要:#include<stdio.h>int main(void){ int x; printf("输入一个整数x:"); scanf("%d",&x); if(x<0) printf("y=sign(%d)=-1",x); else if(x==0) printf("y=sign(%d)=0",x); 阅读全文
posted @ 2024-08-23 21:47 Grit_Doyle 阅读(7) 评论(0) 推荐(0) 编辑
摘要:‌1.使用回车键双击微信图标‌:在按住键盘上的回车键的同时,双击桌面上的微信图标,然后立刻松开回车键。但这种方法可能无法精确控制打开的微信窗口数量,有时可能会打开过多的窗口,导致电脑卡顿甚至死机。‌ ‌2.使用bat命令‌:新建一个文本文档,并粘贴特定的命令,该命令会启动微信程序。‌如果需要双开微信 阅读全文
posted @ 2024-08-21 18:34 Grit_Doyle 阅读(206) 评论(0) 推荐(0) 编辑
摘要:jpg和png是两种常用的图像文件格式,它们在用途、特点以及压缩方法上有所不同: JPEG (Joint Photographic Experts Group): 用途:适用于照片或含有较多连续色调的内容,如风景、人像等。因为JPEG主要依赖于有损压缩算法,对于复杂细节和颜色渐变处理较好。优点:占用 阅读全文
posted @ 2024-08-14 14:52 Grit_Doyle 阅读(113) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示