语言实现
#include <iostream>
#include <string>
#include <cmath>
using namespace std;
// 高精度计算器,可以进行四则运算和进制转换,最高支持100位整数
class Calculator {
private:
string num1; // 第一个数字
string num2; // 第二个数字
int len1; // 第一个数字的长度
int len2; // 第二个数字的长度
bool isNegative; // 是否是负数
...
<未完>点击进入
创作工场 - 内容创作
AI正在思考,请稍等...
- 问题越精准、内容越详细,请勿提交相同标题!

