小编Joe*_*e Z的帖子

C++.我的"你好世界"计划有什么问题?

有人能告诉我这有什么问题.当我输入"你好吗"时,它不回复"我很好."!请帮忙!!!

#include <iostream>
#include <string>
using namespace std;

int main()
{
    string x;

    cout << "Write something.." << endl;
    cin >> x;

    if (x == "How are you?") {
        cout << "I am fine." << endl;
    }

    system("PAUSE");
}
Run Code Online (Sandbox Code Playgroud)

c++

-1
推荐指数
1
解决办法
222
查看次数

标签 统计

c++ ×1