文章分类 -  C语言实例

摘要:#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<Windows.h> #include<math.h> long factorial(int n); int main() { printf("%ld\n", factorial(1 阅读全文
posted @ 2022-04-27 14:05 蛋混小 阅读(80) 评论(0) 推荐(0)
摘要:#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #include<math.h> void check_count(); void combineNum(int x, int y, int z,int num) 阅读全文
posted @ 2022-04-20 11:16 蛋混小 阅读(63) 评论(0) 推荐(0)
摘要:#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #include<math.h> void check_count(); void combineNum(int x, int y, int z,int num) 阅读全文
posted @ 2022-04-20 10:36 蛋混小 阅读(206) 评论(0) 推荐(0)
摘要:#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #include<math.h> void check_count(); void combineNum(int x, int y, int z,int num) 阅读全文
posted @ 2022-04-19 17:52 蛋混小 阅读(851) 评论(0) 推荐(0)
摘要:#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #include<math.h> void check_count(); void combineNum(int x, int y, int z,int num) 阅读全文
posted @ 2022-04-19 17:02 蛋混小 阅读(247) 评论(0) 推荐(0)
摘要:#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #include<math.h> void check_count(); void combineNum(int x, int y, int z,int num) 阅读全文
posted @ 2022-04-19 15:38 蛋混小 阅读(172) 评论(0) 推荐(0)
摘要:#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #include<math.h> void check_count(); void combineNum(int x, int y, int z,int num) 阅读全文
posted @ 2022-04-19 14:06 蛋混小 阅读(78) 评论(0) 推荐(0)
摘要:#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #include<math.h> void check_count(); void combineNum(int x, int y, int z,int num) 阅读全文
posted @ 2022-04-19 10:17 蛋混小 阅读(430) 评论(0) 推荐(0)
摘要:#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #include<math.h> void check_count(); void combineNum(int x, int y, int z,int num) 阅读全文
posted @ 2022-04-18 17:49 蛋混小 阅读(168) 评论(0) 推荐(0)
摘要:#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> void check_count(); void combineNum(int x, int y, int z,int num); void printDiamo 阅读全文
posted @ 2022-04-18 16:51 蛋混小 阅读(260) 评论(0) 推荐(0)
摘要:#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> void check_count(); void combineNum(int x, int y, int z,int num); void printDiamo 阅读全文
posted @ 2022-04-18 13:52 蛋混小 阅读(510) 评论(0) 推荐(0)
摘要:#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> void check_count(); void combineNum(int x, int y, int z,int num); void printDiamo 阅读全文
posted @ 2022-04-18 11:21 蛋混小 阅读(64) 评论(0) 推荐(0)
摘要:#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> void check_count(); void combineNum(int x, int y, int z,int num); void printDiamo 阅读全文
posted @ 2022-04-18 10:50 蛋混小 阅读(714) 评论(0) 推荐(0)
摘要:我国古代数学家张丘建在《算经》一书中曾提出过著名的“百钱买百鸡”问题,该问题叙述如下:鸡翁一,值钱五;鸡母一,值钱三;鸡雏三,值钱一;百钱买百鸡,则翁、母、雏各几何? #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib. 阅读全文
posted @ 2022-04-15 17:51 蛋混小 阅读(303) 评论(0) 推荐(0)
摘要:#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> void check_count(); void combineNum(int x, int y, int z,int num); void printDiamo 阅读全文
posted @ 2022-04-15 16:02 蛋混小 阅读(56) 评论(0) 推荐(0)
摘要:#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> void check_count(); void combineNum(int x, int y, int z,int num); int main() { co 阅读全文
posted @ 2022-04-15 10:42 蛋混小 阅读(170) 评论(0) 推荐(0)
摘要:#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> void check_count(); int main() { check_count(); return 0; } void check_count() { 阅读全文
posted @ 2022-04-13 17:20 蛋混小 阅读(1258) 评论(0) 推荐(0)
摘要:求某一年的某一月有多少天#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> int main() { int x=0, y=0,day=0; printf("请输入年份:\n"); scanf("%d",&y); printf("您输入的 阅读全文
posted @ 2022-04-13 16:09 蛋混小 阅读(55) 评论(0) 推荐(0)