回 帖 发 新 帖 刷新版面

主题:求助在VC++练习题时的问题,请大虾指教

#include <iostream>


using namespace std;

  void main()
  {
      int x,y;
      
      cout <<"enter x and y:";
      cin >> x >> y;
      if (x!=y)
          if (x>y)
              
              cout <<"x>y"<< endl;
          else
              cout <<"x<y"<< endl;
      else
          cout <<"x=y"<<endl;
      
}
请问错在哪?我作其他的练习也是同样错误,都提示在后面的}这里错

回复列表 (共1个回复)

沙发

我复制下来,编译链接都通过啊~~

我来回复

您尚未登录,请登录后再回复。点此登录或注册