90分求调awa
#include<stack>
#include<iostream>
using namespace std;
stack<int> jz;
int a,b;
char csp[100]={'A','B','C','D','E','F'};
int main()
{
cin>>a>>b;
while(a)
{
jz.push(a%b);
a=a/b;
}
while(!jz.empty())
{
if(jz.top()>=10)
{
cout<<csp[jz.top()-10];
}
else
cout<<jz.top();
jz.pop();
}
return 0;
}
在线等,急!