#include <iostream>
//#include <conio>
using namespace std;
int main() {
cout<<"please input a key\n";
char ch=getche()
if ch==('b');
cout<<'\a';
else
if (ch=='\n')
cout<<"what a boring select\n";
else
cout<<"bye\n";
}
错误好多?
ifelseyuju20230316