| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 418 人关注过本帖
标题:新手求助。编程遇到错误
取消只看楼主 加入收藏
bc若相惜
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2015-10-11
结帖率:0
收藏
已结贴  问题点数:20 回复次数:0 
新手求助。编程遇到错误
#include<stdio.h>

int main()
{
    int R,S;
    printf("请输入清晰度:");
    scanf("%d",&R);
    printf("请输入大小:");
    scanf("%d",&S);
   
    swich(S){
        case 1:
        printf("Faint signals, barely perceptibl,");
        break;
        case 2:
        printf("Very weak signals,");
        break;
        case 3:
        printf("Weak signals,");
        break;
        case 4:
        printf("Fair signals,");
        break;
        case 5:
        printf("Fairly good signals,");
        break;
        case 6:
        printf("Good signals,");
        break;
        case 7:
        printf("Moderately strong signals,");
        break;
        case 8:
        printf("Strong signals,");
        break;
        default:
        printf("Extremely strong signals,");
        break;   
    }
   
    swich(R){
        case 1:
        printf("Unreadable.");
        break;
        case 2:
        printf("Barely readable, occasional words distinguishable.");
        break;
        case 3:
        printf("Readable with considerable difficulty.");
        break;
        case 4:
        printf("Readable with practically no difficulty.");
        break;
        default:
        printf("Perfectly readable.");
        break;   
    }
   
   
    return 0;
}

提示错误:In function 'main':
      11 列    10行        [Error] expected ';' before '{' token
搜索更多相关主题的帖子: include 
2015-10-11 12:08
快速回复:新手求助。编程遇到错误
数据加载中...
 
   



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

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