以拼音形式输出整数
没错就是这么水{:10_260:}代码:#include<iostream>
using namespace std;
int main() {
ios::sync_with_stdio(false);
char temp = cin.get();
if (temp == '-') {
cout.put('f').put('u').put(' ');
temp = cin.get();
}
for (;; temp = cin.get()) {
switch (temp) {
case 0:
case -1:
case '\r':
case '\n':
cout << endl;
return 0;
case '1':
cout.put('y').put('i');
break;
case '2':
cout.put('e').put('r');
break;
case '3':
cout.put('s').put('a').put('n');
break;
case '4':
cout.put('s').put('i');
break;
case '5':
cout.put('w').put('u');
break;
case '6':
cout.put('l').put('i').put('u');
break;
case '7':
cout.put('q').put('i');
break;
case '8':
cout.put('b').put('a');
break;
case '9':
cout.put('j').put('i').put('u');
break;
default:
return 1;
}
cout.put(' ');
}
} 沙发 一点也不水{:10_256:}
页:
[1]