//
// main.m
//
//
// Created by Darin on 15/11/21.
// Copyright © 2015年 darin. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "Fraction.h"
int main(int argc, const char * argv[]) {
@autoreleasepool {
// insert code here...
// NSLog(@"Hello, World!");
Fraction *f1 = [Fraction new];
[f1 setNumerator:3];
[f1 setDenominator:4];
[f1 print];
Fraction *f2 = [Fraction new];
[f2 setNumerator:4];
[f2 setDenominator:3];
[f2 print];
[f1 add:f2];
[f1 sub:f2];
}
return 0;
}