![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
语言学习
章鱼小怪兽
这个作者很懒,什么都没留下…
展开
-
error C3861: “xxxx”: 找不到标识符的处理方法
当报错关于error C3861: “xxxx”: 找不到标识符的处理方法原因是主函数调用函数之前没有该函数的声明,所以需要在主函数之前声明该函数,如int days(int year, int month, int day);int main(){ struct dayOfYear p; printf("请输入年,月,日:\n"); scanf("%d %d %d", &p.year, &p.month, &p.day); days(p.year,p.m原创 2021-03-29 11:57:34 · 9532 阅读 · 0 评论 -
定义一个结构体变量(包括年,月,日)。计算该日在本年中是第几天
定义一个结构体变量(包括年,月,日)。计算该日在本年中是第几天,注意闰年问题#include <stdio.h>struct dayOfYear{ int year, month, day;};int main(){ struct dayOfYear p; printf("请输入年,月,日:\n"); scanf("%d %d %d", &p.year, &p.month, &p.day); int sum = 0; int a[12]原创 2021-03-29 11:51:01 · 9098 阅读 · 4 评论