资源简介
类似java里面的BigInteger类型,进行大数存储和计算!
代码片段和文件信息
//
// main.m
// JKInteger
//
// Created by Jānis Kiršteins on 7/10/13.
// Copyright (c) 2013 Jānis Kiršteins. All rights reserved.
//
#import
#import “JKBigInteger.h“
int main(int argc const char *argv[]) {
@autoreleasepool {
JKBigInteger *int1 = [[JKBigInteger alloc] initWithString:@“123“];
NSLog(@“%@ + %@ = %@“ int1 int1 [int1 add:int1]);
JKBigInteger *int2 = [[JKBigInteger alloc] initWithString:@“10000001234567890123“];
JKBigInteger *int3 = [[JKBigInteger alloc] initWithString:@“123“];
NSLog(@“%@ - %@ = %@“ int2 int3 [int2 subtract:int3]);
JKBigInteger *int4 = [[JKBigInteger alloc] initWithString:@“11111111111111111111“];
NSLog(@“%@ * %@ = %@“ int4 int4 [int4 multiply:int4]
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-11-08 17:33 OC涔?BigInteger\
目录 0 2014-08-24 05:47 OC涔?BigInteger\JKBigInteger-master\
文件 265 2014-08-24 05:47 OC涔?BigInteger\JKBigInteger-master\.gitignore
目录 0 2014-11-08 17:34 __MACOSX\
目录 0 2014-11-08 17:34 __MACOSX\OC涔?BigInteger\
目录 0 2014-11-08 17:34 __MACOSX\OC涔?BigInteger\JKBigInteger-master\
文件 212 2014-08-24 05:47 __MACOSX\OC涔?BigInteger\JKBigInteger-master\._.gitignore
目录 0 2014-08-24 05:47 OC涔?BigInteger\JKBigInteger-master\Example\
文件 156 2014-08-24 05:47 OC涔?BigInteger\JKBigInteger-master\Example\JKBigInteger-Prefix.pch
目录 0 2014-11-08 17:34 __MACOSX\OC涔?BigInteger\JKBigInteger-master\Example\
文件 212 2014-08-24 05:47 __MACOSX\OC涔?BigInteger\JKBigInteger-master\Example\._JKBigInteger-Prefix.pch
文件 1365 2014-08-24 05:47 OC涔?BigInteger\JKBigInteger-master\Example\main.m
文件 212 2014-08-24 05:47 __MACOSX\OC涔?BigInteger\JKBigInteger-master\Example\._main.m
文件 212 2014-08-24 05:47 __MACOSX\OC涔?BigInteger\JKBigInteger-master\._Example
目录 0 2014-08-24 05:47 OC涔?BigInteger\JKBigInteger-master\JKBigInteger\
文件 1478 2014-08-24 05:47 OC涔?BigInteger\JKBigInteger-master\JKBigInteger\JKBigInteger.h
目录 0 2014-11-08 17:34 __MACOSX\OC涔?BigInteger\JKBigInteger-master\JKBigInteger\
文件 212 2014-08-24 05:47 __MACOSX\OC涔?BigInteger\JKBigInteger-master\JKBigInteger\._JKBigInteger.h
文件 8841 2014-08-24 05:47 OC涔?BigInteger\JKBigInteger-master\JKBigInteger\JKBigInteger.m
文件 212 2014-08-24 05:47 __MACOSX\OC涔?BigInteger\JKBigInteger-master\JKBigInteger\._JKBigInteger.m
目录 0 2014-08-24 05:47 OC涔?BigInteger\JKBigInteger-master\JKBigInteger\LibTomMath\
文件 153967 2014-08-24 05:47 OC涔?BigInteger\JKBigInteger-master\JKBigInteger\LibTomMath\tommath.c
目录 0 2014-11-08 17:34 __MACOSX\OC涔?BigInteger\JKBigInteger-master\JKBigInteger\LibTomMath\
文件 212 2014-08-24 05:47 __MACOSX\OC涔?BigInteger\JKBigInteger-master\JKBigInteger\LibTomMath\._tommath.c
文件 17213 2014-08-24 05:47 OC涔?BigInteger\JKBigInteger-master\JKBigInteger\LibTomMath\tommath.h
文件 212 2014-08-24 05:47 __MACOSX\OC涔?BigInteger\JKBigInteger-master\JKBigInteger\LibTomMath\._tommath.h
文件 20991 2014-08-24 05:47 OC涔?BigInteger\JKBigInteger-master\JKBigInteger\LibTomMath\tommath_class.h
文件 212 2014-08-24 05:47 __MACOSX\OC涔?BigInteger\JKBigInteger-master\JKBigInteger\LibTomMath\._tommath_class.h
文件 2269 2014-08-24 05:47 OC涔?BigInteger\JKBigInteger-master\JKBigInteger\LibTomMath\tommath_superclass.h
文件 212 2014-08-24 05:47 __MACOSX\OC涔?BigInteger\JKBigInteger-master\JKBigInteger\LibTomMath\._tommath_superclass.h
文件 212 2014-08-24 05:47 __MACOSX\OC涔?BigInteger\JKBigInteger-master\JKBigInteger\._LibTomMath
............此处省略118个文件信息
- 上一篇:长春公交线路查询系统
- 下一篇:十字路口红绿灯
评论
共有 条评论