⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 suintegerclass.h

📁 This a code about the practice of super integar.
💻 H
字号:

#ifndef SUINTEGERCLASS
#define SUINTEGERCLASS 1

struct Node
	{
		char BitData;		
		Node* next;			

	};


class SuInteger
{


	protected:
		bool larger(SuInteger &source, int &cntnum);					
		SuInteger ABSsub(SuInteger &source, int &cntnum);				
		int count;
		bool sign;
		Node* head;


	public:
		SuInteger();
		SuInteger(SuInteger* tmp_next);

		bool IsEmpty();
		void clear();
		void print();

		bool insert_head(char bitdata);
		bool insert_tail(char bitdata);

		SuInteger add(SuInteger &source, int &cntnum);
		SuInteger sub(SuInteger &source, int &cntnum);
		SuInteger mul(SuInteger &source, int &cntnum);
		SuInteger exp(SuInteger &source, int &cntnum);










		



};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -