| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 336 人关注过本帖
标题:在编译中显示“不能到达的代码在函数:(main)"错误
只看楼主 加入收藏
darkangel198
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2007-10-20
收藏
 问题点数:0 回复次数:0 
在编译中显示“不能到达的代码在函数:(main)"错误
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
#include "stdio.h"
#include "graphics.h"
#include "math.h"
main()
{
int year,month;
printf("请输入你要查询的年份_月份\n");
scanf("%d%d",&year,&month);
if(year%400==0||(year%4==0&&year%100!=0))
return(1);
else
return(0);
switch(month){
case 11:
case 9 :
case 6 :
case 4 :
return(30);
case 2:
return(1 ? 29:28);
default:
return(31);
}
}
搜索更多相关主题的帖子: main 函数 编译 代码 
2007-10-20 20:34
快速回复:在编译中显示“不能到达的代码在函数:(main)"错误
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.011140 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved