#include<iostream>
using namespace std;
int main()
{
wchar_t a;
wcout << "有沒有認真學習" << endl;
wcin>>a;
if (a == '有')
cout << "這就對了" << endl;
else
cout << "你這個辣雞" << endl;
system("pause");
return 0;
}
為什么這個輸入有的時候也出“這個垃圾”
uj5u.com熱心網友回復:
if (a == L'有')轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/53507.html
標籤:基礎類
上一篇:sql陳述句如何同時運行
下一篇:VTK隱式曲面重建問題
