资源简介

自己实现简单计算器的功能,使用xcode,oc开发的ios应用,辣鸡

资源截图

代码片段和文件信息

//
//  Calculator+Health.m
//  CalculatorDemo
//
//  Created by 周韬 on 2017/11/2.
//  Copyright © 2017年 zhoutao. All rights reserved.
//

#import “Calculator+Health.h“

@implementation Calculator (Health)
-(NSString*) computeHealthWithHeight:(NSString*) height andWeight:(NSString*) weight
{
    NSMutableString *expression;
    expression = [NSMutableString stringWithString:weight];
    [expression appendString:@“/((“];
    [expression appendString:height];
    [expression appendString:@“/100.0)“];
    [expression appendString:@“*(“];
    [expression appendString:height];
    [expression appendString:@“/100.0))“];
    self.disp = expression;
    return [NSString stringWithFormat:@“%.2f“[[self computeResult] floatValue]];
}


@end

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-08-17 20:29  CalculatorDemo\
     文件        6148  2018-08-17 20:29  CalculatorDemo\.DS_Store
     目录           0  2018-08-24 20:16  __MACOSX\
     目录           0  2018-08-24 20:16  __MACOSX\CalculatorDemo\
     文件         120  2018-08-17 20:29  __MACOSX\CalculatorDemo\._.DS_Store
     目录           0  2018-08-17 20:29  CalculatorDemo\.git\
     文件          15  2018-08-17 20:29  CalculatorDemo\.git\COMMIT_EDITMSG
     文件         137  2018-08-17 20:29  CalculatorDemo\.git\config
     文件          73  2018-08-17 20:29  CalculatorDemo\.git\description
     文件          23  2018-08-17 20:29  CalculatorDemo\.git\HEAD
     目录           0  2018-08-17 20:29  CalculatorDemo\.git\hooks\
     文件         177  2018-08-17 20:29  CalculatorDemo\.git\hooks\README.sample
     文件        3854  2018-08-17 20:29  CalculatorDemo\.git\index
     目录           0  2018-08-17 20:29  CalculatorDemo\.git\info\
     文件          40  2018-08-17 20:29  CalculatorDemo\.git\info\exclude
     目录           0  2018-08-24 20:16  __MACOSX\CalculatorDemo\.git\
     目录           0  2018-08-24 20:16  __MACOSX\CalculatorDemo\.git\info\
     文件         171  2018-08-17 20:29  __MACOSX\CalculatorDemo\.git\info\._exclude
     目录           0  2018-08-17 20:29  CalculatorDemo\.git\logs\
     文件         164  2018-08-17 20:29  CalculatorDemo\.git\logs\HEAD
     目录           0  2018-08-17 20:29  CalculatorDemo\.git\logs\refs\
     目录           0  2018-08-17 20:29  CalculatorDemo\.git\logs\refs\heads\
     文件         164  2018-08-17 20:29  CalculatorDemo\.git\logs\refs\heads\master
     目录           0  2018-08-17 20:29  CalculatorDemo\.git\objects\
     目录           0  2018-08-17 20:29  CalculatorDemo\.git\objects\02\
     文件          58  2017-10-17 20:49  CalculatorDemo\.git\objects\02\6d393f0a891b0c5a1e37dcb9a8706c2c4e5ff0
     文件         172  2017-11-02 11:49  CalculatorDemo\.git\objects\02\b3c7532785d251bd083dea72fda58e74194f70
     目录           0  2018-08-17 20:29  CalculatorDemo\.git\objects\04\
     文件         129  2017-10-17 20:49  CalculatorDemo\.git\objects\04\c57c12bfb4cbd3edef8010cbf044386fa2fc16
     目录           0  2018-08-17 20:29  CalculatorDemo\.git\objects\06\
     文件         491  2017-11-02 11:58  CalculatorDemo\.git\objects\06\f8a4dcdab4861ac5aee56e1c3551d830890ccd
............此处省略181个文件信息

评论

共有 条评论