

Hãy luôn nhớ cảm ơn và vote 5*
nếu câu trả lời hữu ích nhé!
#include <bits/stdc++.h>
using namespace std;
bool chu(int a)
{
return a >= 'a' && a <= 'z';
}
int main()
{
string s;
cin >> s;
int t = 0;
for (int i = 0; i < s.size(); i++)
{
t = t * 10 + s[i] - '0';
if (chu(t))
{
cout << char(t);
t = 0;
}
}
}
Hãy giúp mọi người biết câu trả lời này thế nào?

`* C++:`
`" "`
#include <iostream>
#include <string>
using namespace std;
int main()
{
string S;
cin >> S;
int indi;
while (S != "") {
if (S[0] == '9')
indi = 2;
else
indi = 3;
string temp = S.substr(0, indi);
int nombre = stoi(temp);
char per = nombre;
cout << per;
S.erase(0, indi);
}
return 0;
}
Hãy giúp mọi người biết câu trả lời này thế nào?

Bảng tin