```cpp // // Created by YikN on 2022/4/24. // #include<bits/stdc++.h> using namespace std; string s; void jiami(string s) { for (int i = 0; i < s.size(); ++i) { cout << s[i] - 10 << '/'; } } void jiemi(string s) { for (int i = 0; i < s.size(); ++i) { if (s[i] == '/')continue; int j = i; int mod = 0; mod = s[i] - '0'; while (s[j + 1] != '/' && j + 1 < s.size()) { mod = mod * 10 + (s[j + 1] - '0'); j++; } i = j; printf("%c", mod + 10); } } int main() { int x; printf("jiami :Please press 1\njiemi : Please press 2\n"); while (cin >> x) { printf("cin.string\n"); cin >> s; cout << s << endl; if (x == 1) { jiami(s); } else jiemi(s); cout << endl; printf("jiami :Please press 1\njiemi : Please press 2\n"); printf("cin.string\n"); } return 0; }