代码如下:
#include <bits/stdc++.h>
using namespace std;
string Divide(string str,int x){ //字符串除法
int remainder=0; //保存余数
for(int i=0;i<str.size();i++){
int current=remainder*10+str[i]-'0';
str[i]=current/x+'0';
remainder=current%x;
}
int pos=0;
while(str[pos]=='0'){
pos++; //寻找首个非0下标
}
return str.substr(pos);
}
string Multiple(string str,int x){ //字符串乘法
int c