| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 418 人关注过本帖
标题:新手求助。编程遇到错误
只看楼主 加入收藏
bc若相惜
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2015-10-11
结帖率:0
收藏
已结贴  问题点数:20 回复次数:2 
新手求助。编程遇到错误
#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
A磊
Rank: 2
等 级:论坛游民
帖 子:7
专家分:17
注 册:2015-10-9
收藏
得分:10 
大兄弟,仔细看看你的‘swich’写对了吗?
收到的鲜花
  • hjx11202015-10-11 13:28 送鲜花  49朵   附言:火眼

见与不见——情都在那儿
2015-10-11 12:27
Spy001
Rank: 9Rank: 9Rank: 9
来 自:山那边
等 级:贵宾
威 望:10
帖 子:138
专家分:1360
注 册:2015-1-23
收藏
得分:10 
估计是喝多了,字都打错了...
swich(S){     
switch(表达式){

千百年之后,谁又还记得谁........
2015-10-11 17:23
快速回复:新手求助。编程遇到错误
数据加载中...
 
   



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

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