摘要: 1 #define _CRT_SECURE_NO_WARNINGS 1 2 #include <stdio.h> 3 #include <stdlib.h> 4 #include <string.h> 5 #include <math.h> 6 //文件类型的指针 7 int main() 8 { 阅读全文
posted @ 2022-03-25 22:04 小团熙 阅读(26) 评论(0) 推荐(0)
摘要: 1 #define _CRT_SECURE_NO_WARNINGS 1 2 #include <stdio.h> 3 #include <stdlib.h> 4 #include <string.h> 5 struct date 6 { 7 int _year; 8 int _month; 9 in 阅读全文
posted @ 2022-03-24 21:55 小团熙 阅读(25) 评论(0) 推荐(0)
摘要: 1 void Avg(int score[][5], int n) 2 { 3 double sum = 0; 4 for (int i = 0; i < 4; i++) 5 { 6 sum += *(*(score + i) + 0); 7 } 8 printf("第一门课程的平均分:%f\n", 阅读全文
posted @ 2022-03-23 22:18 小团熙 阅读(21) 评论(0) 推荐(0)
摘要: 1 #define _CRT_SECURE_NO_WARNINGS 1 2 #include <stdio.h> 3 #include <stdlib.h> 4 #include <math.h> 5 6 //穷举法--效率不高 7 int gcd(int a, int b) 8 { 9 int g 阅读全文
posted @ 2022-03-22 23:02 小团熙 阅读(71) 评论(0) 推荐(0)
摘要: 1 #define _CRT_SECURE_NO_WARNINGS 1 2 #include <stdio.h> 3 #include <stdlib.h> 4 int main() 5 { 6 int array[100]; 7 //向array数组中填充1~100所有数据 8 for (int 阅读全文
posted @ 2022-03-21 22:03 小团熙 阅读(49) 评论(0) 推荐(0)
摘要: 1 #define _CRT_SECURE_NO_WARNINGS 1 2 #include <stdio.h> 3 #include <stdlib.h> 4 #include <math.h> 5 #include <string.h> 6 7 int main() 8 { 9 int n = 阅读全文
posted @ 2022-03-20 22:29 小团熙 阅读(39) 评论(0) 推荐(0)
摘要: 1 #define _CRT_SECURE_NO_WARNINGS 1 2 #include <stdio.h> 3 #include <stdlib.h> 4 int d = 1; 5 void fun(int p) 6 { 7 int d = 5; 8 d += p++; 9 printf("% 阅读全文
posted @ 2022-03-19 22:18 小团熙 阅读(43) 评论(0) 推荐(0)
摘要: 1 #define _CRT_SECURE_NO_WARNINGS 1 2 #include <stdio.h> 3 #include <stdlib.h> 4 void fun(int *s, int n1, int n2) 5 { 6 int i, j, t; 7 i = n1; 8 j = n 阅读全文
posted @ 2022-03-18 22:02 小团熙 阅读(16) 评论(0) 推荐(0)
摘要: 1 #define _CRT_SECURE_NO_WARNINGS 1 2 #include <stdio.h> 3 #include <stdlib.h> 4 #include <ctype.h> 5 #include <string.h> 6 void fun(char *p) 7 { 8 in 阅读全文
posted @ 2022-03-17 22:53 小团熙 阅读(44) 评论(0) 推荐(0)
摘要: #define _CRT_SECURE_NO_WARNINGS 1 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int main() { char p[20] = { 'a', 'b', ' 阅读全文
posted @ 2022-03-16 22:42 小团熙 阅读(26) 评论(0) 推荐(0)