摘要: 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<string.h> 4 #define N 80 5 int main() 6 { 7 int i,count=0; 8 char x[N]; 9 FILE *fp; 10 11 fp = fop 阅读全文
posted @ 2022-12-27 12:18 卖导弹的小女孩 阅读(26) 评论(0) 推荐(0)
摘要: 1 #include <stdio.h> 2 #include<string.h> 3 #define N 100 4 5 typedef struct { 6 char num[10]; // 学号 7 int s1; // 期末成绩 8 int s2; // 平时成绩 9 double sum; 阅读全文
posted @ 2022-12-22 18:53 卖导弹的小女孩 阅读(29) 评论(0) 推荐(0)
摘要: 1 #include <stdio.h> 2 #define N 4 3 4 int main() { 5 int a[N] = {1, 9, 8, 4}; 6 char b[N] = {'1', '9', '8', '4'}; 7 int i; 8 9 printf("sizeof(int) = 阅读全文
posted @ 2022-11-26 21:33 卖导弹的小女孩 阅读(20) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-11-08 11:19 卖导弹的小女孩 阅读(13) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<stdlib.h> #include<time.h> #define N 5 int main() { int number,i; srand(time(0)); for(i=0;i<N;++i) { number = rand()%500 + 阅读全文
posted @ 2022-10-23 10:54 卖导弹的小女孩 阅读(13) 评论(0) 推荐(0)
摘要: 实验任务1 1 #include<stdio.h> 2 int main() 3 { 4 printf(" O O\n"); 5 printf("<H> <H>\n"); 6 printf("I I I I\n"); 7 8 return 0; 9 10 } 1 #include<stdio.h> 阅读全文
posted @ 2022-10-12 23:19 卖导弹的小女孩 阅读(45) 评论(0) 推荐(0)