1 回答

慕萊塢9220042
TA貢獻(xiàn)377條經(jīng)驗 獲得超508個贊
你好:
public?class?BigInteger?//表示很大的整數(shù)?? {?? ????int?sign;???//標(biāo)識符號?? ????byte[]?val;?//用字節(jié)數(shù)組表示數(shù)值的二進(jìn)制數(shù)?? ?? ????//構(gòu)造方法,把一個包含有多位數(shù)值的字符串轉(zhuǎn)換到內(nèi)部的符號和字節(jié)數(shù)組中?? ????public?Biginteger(String?val)??? ????{?? ????sign?=?;?? ????val?=?;?? ????}?? ?? ????//+-*%方法?? ????public?BigInteger?add(BigInteger?other){}???? ????public?BigInteger?subtract(BigInteger?other){}?? ????public?BigInteger?multiply(BigInteger?other){}?? ????public?BigInteger?divide(BigInteger?other){}?? }
望采納!
添加回答
舉報
0/150
提交
取消