如何在多个条件下使用if语句 C++

有三种情况,当x>y,x<y,x=y,这三种情况使用if要怎么使用,两种情况会用,但
三种就不会了,求大神指教

 if(x>y)
 {
 。。。
 }
else if(x<y)
 {
 。。。
 }
else
 {
 。。。
 }

if x>y
elseif x<y
else

哪里错了图片说明图片说明图片说明图片说明图片

你把代码贴出了,看上去象是用了中文符号,把红色的都改为半角西文符号。

#include <bits/stdc++.h>
using namespace std;

int main() {
    int x, y;
    cout << "请输入两个整数:";
    cin >> x >> y;
    if (x > y)
        cout << x << "is large";
    else if (x < y)
        cout << y << "is large";
    else
        cout << "These numbers are equal" << endl;
    return 0;
}
```c++


```
试一试,这是你的代码。