标题:提示不明白?
取消只看楼主
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



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-392505-1-1.html




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

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