为什么编译后总会有call of nonfunction?
来源:互联网 发布:礼记中庸好学近乎知 编辑:程序博客网 时间:2024/06/06 09:22
把某年某月某天转换为改年的第几天,可为什么我编译后总会有call of nonfunction?是不是我函数调用错了?
#include<stdio.h>
int year(int y) (判断是否为闰年){if(y%4!=0||(y%4==0&&y%100!=0&&y%400!=0))
return 0;
else return 1;
}
int mouth(int m)
{ if(year(m)==0&&m==2)(判断每月天数)
return 28;
if(year(m)!=0&&m==2)
return 29;
if((m<=7&&m%2!=0)||(m>=8&&m%2==0))
return 31;
else
return 30;
}
void main()
{ int year,mouth,day,day1,day2,m;m=0;day2=0;
do
{
printf( " Input year");
scanf("%d",&year);
}while(year<1900||year>3000);
do
{
printf("Input mouth");
scanf("%d",&mouth);
}while(mouth<1||mouth>12);
day2=mouth(m);
do
{ printf("Input day");
scanf("%d",&day);
}while(day<1||day>day2);
if(mouth==1)
day1=day;(如果月份为一,直接等于输入日期)
else if(mouth>1)
{
do
{ day1=mouth(m)+day1;(从一月份开始加,直到等于输入月份)
m++;
}while(m>mouth-1);
day1=day1+day;(再加上最大月份的日期)
}
printf("Is %d",day1);
}
(可是怎么会编译不过的)
0 0
- 为什么编译后总会有call of nonfunction?
- 问题:QT mplayer 编译错误call of overloaded 'number(HWND_*)' is ambiguous
- Angular2 AOT编译出现Supplied parameters do not match any signature of call target
- 为什么尽量减少draw call
- 解答为什么Extjs5中mask.show()不工作了并报错Uncaught TypeError: Cannot call property 'mask' of undefined
- call of duty 7[0]
- Call for papers of ICESS-2008
- the implementation of system call in linux
- Concept clearification of Transaction, dialog and call
- Cannot call method 'indexOf' of undefined
- cannot call method foreach of undefined问题
- TypeError:Cannot call method 'getItem' of null
- SIP Call Flow - Initiation of IMS Session
- Swift3 - Result of call '***' is unused
- openCL: Call has wrong number of parameters
- call of overloaded 'round(&float)' is ambiguous
- Cannot call method 'getItem' of null
- ubuntu64位下交叉编译opencv3.3遇到的make[error]error: call of overloaded 'abs(long long int&)' is ambiguous
- ObjectInputStram 和ObjectOutputStream对象的持久化操作
- emacs -2014
- 使用gdb调试so的thumb时报错
- 黑马程序员-第十三天(基本数据类型包装类)
- 分割文件与合并文件
- 为什么编译后总会有call of nonfunction?
- Cocos2dx 3.0 过渡篇(十四)用touch拖动女主打败小三!
- HDU 1879 畅通工程(最小生成树)
- SQL概述
- 浅谈JavaScript闭包
- 读《MacTalk人生元编程》,完
- 管道流PipedInputStream 和PipedOutputStream
- 盲填数独--大众都可学会的最强大脑游戏
- 黑马程序员-第十四天(集合框架)