30 lines
518 B
C
30 lines
518 B
C
|
|
//
|
||
|
|
// Algorithm.h
|
||
|
|
// Pods
|
||
|
|
//
|
||
|
|
// Created by Ran Zhao on 9/2/24.
|
||
|
|
//
|
||
|
|
|
||
|
|
#ifndef Algorithm_h
|
||
|
|
#define Algorithm_h
|
||
|
|
|
||
|
|
#import <Foundation/Foundation.h>
|
||
|
|
|
||
|
|
@interface I4Algorithm : NSObject
|
||
|
|
|
||
|
|
@property (nonatomic, strong) NSString *code;
|
||
|
|
@property (nonatomic, assign) int value;
|
||
|
|
|
||
|
|
+ (instancetype)I4_0;
|
||
|
|
+ (instancetype)I4_20;
|
||
|
|
+ (instancetype)I4_40;
|
||
|
|
+ (instancetype)I4_60;
|
||
|
|
+ (instancetype)I4_80;
|
||
|
|
|
||
|
|
- (instancetype)initWithCode:(NSString *)code value:(int)value;
|
||
|
|
- (double)getI4Value:(double)i3value;
|
||
|
|
|
||
|
|
@end
|
||
|
|
|
||
|
|
#endif /* Algorithm_h */
|