标题:谁能帮忙解释一下这个为什么无法运行。
取消只看楼主
GELUCk
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2018-1-11
结帖率:0
 问题点数:0 回复次数:1 
谁能帮忙解释一下这个为什么无法运行。
#include <iostream>
using namespace std;
int main()
{
    int a, b, c;
    cout << "please enter a,b,c" << endl;
    cin >> a >> b >> c;
    cout << "the biggest is ";
    int mid;
    {if (a > b)
        mid = a;
      {
        if (mid > c)

            cout << mid;
        else
            cout << c;
      }
      if (b > a)
          mid = b;
      {
          if (mid > c)
              cout << mid;
          else cout << c;
      }
    }
    system("pause");
    return 0;
}
搜索更多相关主题的帖子: 无法运行 include int cout mid 
2018-01-21 22:46
GELUCk
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2018-1-11
得分:0 
回复 3楼 stop1204
明白了,没问题了。(但是,如果输入3 4 5后,它会输出两个5,这是怎么回事)
2018-01-22 21:26



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




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

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