摘要: #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> int main() { FILE* fp; char ch; int count=0; fp = fopen("E:\\study\\sourse\\data4 阅读全文
posted @ 2022-12-27 22:47 王昌煦 阅读(3) 评论(0) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #include<string.h> #define N 100 typedef struct student { char num[10]; int s1; i 阅读全文
posted @ 2022-12-27 22:24 王昌煦 阅读(4) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #define N 4 int main() { int a[N] = { 1,9,8,4 }; char b[N] = {'1','9','8','4'}; int i; printf("sizeof(int)=%d\n", sizeof(int)); prin 阅读全文
posted @ 2022-11-27 18:38 王昌煦 阅读(2) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> long long func(int n); int main() { int n; long long f; while (scanf_s("%d", &n) != EOF) { f = func(n); printf("n=%d,f=%lld\n", n, f 阅读全文
posted @ 2022-11-05 19:55 王昌煦 阅读(28) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<stdlib.h> #include<time.h> int main() { char a; while(scanf_s("%c",&a) != EOF) { switch (a) { case'r':printf("STOP!\n"); br 阅读全文
posted @ 2022-10-20 01:05 王昌煦 阅读(23) 评论(0) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<math.h> int main() { double c, f; while (scanf("%lf", &c) != EOF) { f = 9 * c / 5 + 32; pri 阅读全文
posted @ 2022-10-13 22:24 王昌煦 阅读(63) 评论(0) 推荐(0) 编辑