C++高手来帮下忙啊

来源:百度知道 编辑:UC知道 时间:2024/07/15 16:11:18
构造一个BigInteger类完成下列要求:x*y,x+y,x-y,GCD(最大公约数)(x,y),is prime(x)//质数,代码以123456.cpp,以comments标注作者名,日期等信息
例;作者名为:张三

////////////////////////////////////////////////
//File: 123456.cpp
//Creation-Date: 2008/01/03
//Author: uheeschen
//Description: A Biginteger Class
//License: GNU Public License Version 2
////////////////////////////////////////////////
#include <cmath>
#include <iostream>
using namespace std;
class BigInteger {
private:
long long num;
public:
///////////////////////////////////////////////
//TODO: Public functions to be added...
///////////////////////////////////////////////
protected:
///////////////////////////////////////////////
//TODO: Functions to be added...
///////////////////////////////////////////////
};