- 博客(2)
- 收藏
- 关注
原创 运用递归获取任意数首位的函数
#define _CRT_SECURE_NO_WARNINGS 1#include<stdio.h>int getfirst(int num){ int first; if (num > 9) { num = num / 10; num=getfirst(num); } first = num; return first;}int main(){ int a = 0; printf("输入一个数:\n"); scanf("%d", &a...
2021-10-13 09:39:02
676
1
原创 一个日期的综合运算小程序
#define _CRT_SECURE_NO_WARNINGS 1#include<stdio.h>#include <time.h>#include <stdlib.h>#include <math.h> struct date //建立日期结构体 { int year; int month; int day; };.
2021-10-11 23:55:58
259
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人