米七985  

2020年12月30日

摘要: 三 1.出现 2.信息正确直观可读 四 #include <stdio.h> #include <stdlib.h> #define N 10 typedef struct student { int num; char name[20]; int score; }STU; int main() { 阅读全文
posted @ 2020-12-30 21:04 语千 阅读(55) 评论(1) 推荐(0) 编辑

2020年12月21日

摘要: // P280例8.15 // 对教材上的程序作了微调整,把输出学生信息单独编写成一个函数模块 // 打印不及格学生信息和所有学生信息程分别调用 #include<stdio.h> #include<stdlib.h> #include<string.h> #define N 3 // 运行程序输入 阅读全文
posted @ 2020-12-21 23:06 语千 阅读(82) 评论(2) 推荐(0) 编辑

2020年12月17日

摘要: #include<stdio.h> const int N=3; int main(){ int a[N]={1,2,3}; int i; printf("通过数组名及下标直接访问数组元素:\n"); for(i=0;i<N;i++) printf("%d:%d\n",&a[i],a[i]); pr 阅读全文
posted @ 2020-12-17 13:08 语千 阅读(45) 评论(1) 推荐(0) 编辑

2020年12月4日

摘要: #include <stdio.h> long long fac(int n); int main() { int i,n; printf("Enter n: "); scanf("%d", &n); for(i=1; i<=n; ++i) printf("%d! = %lld\n", i, fac 阅读全文
posted @ 2020-12-04 21:25 语千 阅读(65) 评论(0) 推荐(0) 编辑

2020年11月18日

摘要: #include<stdio.h> #include<math.h> int main(){ float a,b,c,x1,x2; float delta,real,imag; printf("Enter a,b,c: "); while(scanf("%f%f%f",&a,&b,&c)!=EOF) 阅读全文
posted @ 2020-11-18 12:49 语千 阅读(109) 评论(1) 推荐(0) 编辑

2020年11月4日

摘要: //ex1.cpp #include <stdio.h> int main(){ int a=5, b=7, c=100, d, e, f; d = a/b*c; e = a*c/b; f = c/b*a; printf("d=%d, e=%d, f=%d\n",d,e,f) ; return 0; 阅读全文
posted @ 2020-11-04 23:08 语千 阅读(81) 评论(0) 推荐(0) 编辑

2020年10月21日

摘要: /* A simple C program */ #include <stdio.h> int main() { printf("my stuno is :202083290325\n"); printf("i just want to be better \n"); return 0; } /* 阅读全文
posted @ 2020-10-21 11:22 语千 阅读(52) 评论(0) 推荐(0) 编辑