| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1294 人关注过本帖
标题:求大神检查错误在哪里?
取消只看楼主 加入收藏
Fiona璃月
Rank: 1
等 级:新手上路
帖 子:12
专家分:0
注 册:2016-11-18
结帖率:50%
收藏
 问题点数:0 回复次数:1 
求大神检查错误在哪里?
错误是  [Error] ld returned 1 exit status  是什么错误啊?
#include<stdio.h>
int main(void)
{ int x,y;
printf("Enter a two-digit number:");
scanf("%1d%1d",&x,&y);
 
 if(x>20){
   switch(x)
   {
    case 2:printf("twenty");
    case 3:printf("thirty");
    case 4:printf("forty");
    case 5:printf("fifty");
    case 6:printf("sixty");
    case 7:printf("seventy");
    case 8:printf("eighty");
    case 9:printf("ninty");
   }
   switch(y)
  {case 1:printf("one");
   case 2:printrf("two");
   case 3:printf("three");
   case 4:printf("four");
   case 5:printf("five");
   case 6:printf("six");
   case 7:printf("seven");
   case 8:printf("eight");
   case 9:printf("nine");
  }
 }
 else
 {
  switch(y)
  {case 1:printf("eleven");
   case 2:printrf("twelve");
   case 3:printf("thirteen");
   case 4:printf("forteen");
   case 5:printf("fifteen");
   case 6:printf("sixteen");
   case 7:printf("seventeen");
   case 8:printf("eightteen");
   case 9:printf("ninteen");
  }
 }


return 0;
}
搜索更多相关主题的帖子: include number status Enter 
2016-11-27 22:04
Fiona璃月
Rank: 1
等 级:新手上路
帖 子:12
专家分:0
注 册:2016-11-18
收藏
得分:0 
报错是不是返回值为1啊?应该怎么改?
2016-11-27 22:06
快速回复:求大神检查错误在哪里?
数据加载中...
 
   



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

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