为什么我是输出N4N???
#include<iostream>
#include<string>
using namespace std;
int main(){
int n,m;
cin>>n>>m;
string s1="";
string s2="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
while(n!=0){
int x=n%m;
s1+=s2[x]+s1;
n/=m;
}
cout<<s1;
return 0;
}
有没有大神帮本蒟蒻调一下???