摘要: #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 阅读(122) 评论(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 阅读(113) 评论(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 阅读(401) 评论(0) 推荐(0) 编辑