| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 363 人关注过本帖
标题:输出??
取消只看楼主 加入收藏
dreamhouse
Rank: 1
等 级:新手上路
帖 子:107
专家分:7
注 册:2011-12-16
结帖率:59.46%
收藏
 问题点数:0 回复次数:0 
输出??
#include<iostream>
void main()
{
    int month=1;
        char *season=NULL;
        switch(month){
        case 12:
            season="winter";
                break;
        case 1:
            season="winter";
            break;
        case 2:
            season="winter";
            break;
        case 3:
        case 4:
        case 5:
            season="spring";
            break;
        case 6:
        case 7:
        case 8:
            season="summer";
            break;
        case 9:
        case 10:
        case 11:
            season="autumn";
            break;
        default:
                season="bogus month";
        }
            printf("april is in the  " ,season);

}
搜索更多相关主题的帖子: spring void include summer 
2012-12-21 16:23
快速回复:输出??
数据加载中...
 
   



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

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