十进制转为十六进制
#include <iostream>using namespace std;
int main()
{ int sjz;
char qs[80];
int i,k,r;
do
cin>>sjz;
while(sjz<=0);
k=0;
while(sjz!=0)
{r=sjz%16;
if(r<10) qs[k]= ________________;
else qs[k]= ________________;
sjz=_________;
k++;
}
for(i=_________;i>=0;i--)
cout<<qs[i];
cout<<endl;
return 0;
}
怎么填?老师布置的完善题......