| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 447 人关注过本帖
标题:提示不明白?
取消只看楼主 加入收藏
dreamhouse
Rank: 1
等 级:新手上路
帖 子:107
专家分:7
注 册:2011-12-16
结帖率:59.46%
收藏
已结贴  问题点数:2 回复次数:2 
提示不明白?
#include<iostream>
 int main()
 {
   
     int  month=4;
     char season;
     if (month==12||month==1||month==2)
     {season='Winter';}
     else
     if (month==3||month==4||month==5)
     {season='Spring';}  
     else
     if (month==6||month==7||month==8)
     {season='Summer';}   
     else
     if (month==9||month==10||month==11)
     {season='Autumn';}
     else printf("Bogus Month");
     printf("April is in the %c\n",season);
     return 0;
 
}
too many characters in constant
 

搜索更多相关主题的帖子: 提示 include Summer return 
2012-12-21 00:07
dreamhouse
Rank: 1
等 级:新手上路
帖 子:107
专家分:7
注 册:2011-12-16
收藏
得分:0 
回复 4楼 SLmask
char *season=a;是指针引用数组吧?

vvvvvvvvvv
2012-12-21 14:44
dreamhouse
Rank: 1
等 级:新手上路
帖 子:107
专家分:7
注 册:2011-12-16
收藏
得分:0 
回复 7楼 SLmask
www.

vvvvvvvvvv
2012-12-22 11:06
快速回复:提示不明白?
数据加载中...
 
   



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

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