#include <stdio.h>
void winmian()
{
int year,mon1,mon2,mon3;
printf("please type a year number.\n");
scanf("%d",&year);
mon1=year%4;
mon2=year%100;
mon3=year%400;
if(mon1==0)
{
if(mon2==0)
{
if(mon3==0)
{
printf("this year is runnian.\n");
}
else
printf("this year is not runnian.\n");
}
else
printf("this year is runnian.\n");
}else
printf("this year is not runnian.");
}
这是我根据他的写的 有些不一样 新手学了两天 有些错误 求高手讲解
Debug/chapter01.exe : fatal error LNK1120: 1 unresolved externals