标签:ret char turn int std span ring space nbsp
1
#include<string>
using namespace std;
int sev(int a)
{
int t=0;
while(a>0)
{
t=a%10+t*10;
a=a/10;
}
return t;
}
int main()
{
int n;
while(cin>>n)
{
if(n==0) break;
int a[5];
int b=sev(n);
for(int i=0;i<5;i++)
{
a[i]=b%10;
b=b/10;
}
string s;
char s1[5];
cin>>s;
for(int i=0;i<5;i++)
{
s1[i]=s[i]+a[i];
}
cout<<s1<<endl;
}
}
标签:ret char turn int std span ring space nbsp
原文地址:https://www.cnblogs.com/ilovetheworld/p/10274785.html