//
// calciViewController.h
// calci
//
// Created by luojiaqi on 10-7-30.
// Copyright __MyCompanyName__ 2010. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef enum{
OperatorTypePlus =0,
OperatorTypeMinus =1,
OperatorTypeMultiply =2,
OperatorTypeDivide =3,
}OperatorType;
@interface calciViewController : UIViewController {
UITextField *txtResult;
UIButton *btnOne;
UIButton *btnTwo;
UIButton *btnThree;
UIButton *btnFour;
UIButton *btnFive;
UIButton *btnSix;
UIButton *btnSevern;
UIButton *btnEight;
UIButton *btnNine;
UIButton *btnZero;
UIButton *btnPlus;
UIButton *btnMinus;
UIButton *btnMultiply;
UIButton *btnDivide;
UIButton *btnEqual;
UIButton *btnDot;
UIButton *btnCe;
UIButton *btnBack;
UIButton *btnsqrt;
UIButton *btnsquare;
float result;
float currentNumber;
BOOL isNumber;
BOOL btndotpress; //判断是否按下小数点的变量。
OperatorType currentOperatorType;
int i; //i为点击小数点后再每输入一个数都退一个百分位。
}
@property (nonatomic,retain) IBOutlet UITextField *txtResult;
@property (nonatomic,retain) IBOutlet UIButton *btnOne;
@property (nonatomic,retain) IBOutlet UIButton *btnTwo;
@property (nonatomic,retain) IBOutlet UIButton *btnThree;
@property (nonatomic,retain) IBOutlet UIButton *btnFour;
@property (nonatomic,retain) IBOutlet UIButton *btnFive;
@property (nonatomic,retain) IBOutlet UIButton *btnSix;
@property (nonatomic,retain) IBOutlet UIButton *btnSevern;
@property (nonatomic,retain) IBOutlet UIButton *btnEight;
@property (nonatomic,retain) IBOutlet UIButton *btnNine;
@property (nonatomic,retain) IBOutlet UIButton *btnZero;
@property (nonatomic,retain) IBOutlet UIButton *btnPlus;
@property (nonatomic,retain) IBOutlet UIButton *btnMinus;
@property (nonatomic,retain) IBOutlet UIButton *btnMultiply;
@property (nonatomic,retain) IBOutlet UIButton *btnDivide;
@property (nonatomic,retain) IBOutlet UIButton *btnEqual;
@property (nonatomic,retain) IBOutlet UIButton *btnDot;
@property (nonatomic,retain) IBOutlet UIButton *btnCe;
@property (nonatomic,retain) IBOutlet UIButton *btnBack;
@property (nonatomic,retain) IBOutlet UIButton *btnsqrt;
@property (nonatomic,retain) IBOutlet UIButton *btnsquare;
-(IBAction) numberPress:(id)sender;
-(IBAction) operatorPress:(id)sender;
-(IBAction) equalPress:(id)sender;
-(IBAction) dotPress:(id)sender;
-(IBAction) cePress:(id)sender;
-(IBAction) BackPress:(id)sender;
-(IBAction) sqrtPress:(id)sender;
-(IBAction) squarePress:(id)sender;
@end
//
// calciViewController.h
// calci
//
// Created by luojiaqi on 10-8-1.
// Copyright __MyCompanyName__ 2010. All rights reserved.
//
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
calci副本 8.zip (90个子文件)
calci副本 8
main.m 354B
z7.png 7KB
z15.png 7KB
z18.png 7KB
z2.png 8KB
build
Debug-iphonesimulator
calci.app
PkgInfo 8B
z7.png 7KB
MainWindow.nib 1KB
z15.png 7KB
z18.png 7KB
z2.png 8KB
calciViewController.nib 7KB
z1.png 7KB
未标题-2.png 208KB
z17.png 8KB
z6.png 7KB
Info.plist 583B
z10.png 8KB
z11.png 8KB
z12.png 7KB
z8.png 7KB
z4.png 8KB
z19.png 7KB
z20.png 7KB
z16.png 8KB
calci 34KB
z9.png 7KB
z5.png 8KB
z13.png 7KB
z3.png 8KB
z14.png 8KB
calci.app.dSYM
Contents
Resources
DWARF
calci 82KB
Info.plist 589B
.DS_Store 6KB
calci.build
Debug-iphonesimulator
calci.build
calci-own-target-headers.hmap 793B
calci-project-headers.hmap 937B
calci.dep 13KB
calci-all-target-headers.hmap 793B
calci.hmap 2KB
Objects-normal
i386
calciAppDelegate.o 47KB
calci.LinkFileList 378B
calciViewController.o 67KB
main.o 6KB
build-state.dat 117KB
calci~.dep 2KB
build-state~.dat 79KB
calci-generated-files.hmap 121B
.DS_Store 6KB
calci.pbxindex
imports.pbxbtree 8KB
decls.pbxbtree 145KB
files.pbxbtree 3KB
protocols.pbxbtree 2KB
subclasses.pbxbtree 2KB
pbxindex.header 24B
symbols0.pbxsymbols 620KB
categories.pbxbtree 1KB
refs.pbxbtree 111KB
strings.pbxstrings
control 256KB
strings 308KB
cdecls.pbxbtree 145KB
z1.png 7KB
未标题-2.png 208KB
.DS_Store 12KB
z17.png 8KB
z6.png 7KB
Classes
calciViewController.m 4KB
.DS_Store 6KB
calciAppDelegate.h 462B
calciAppDelegate.m 3KB
calciViewController.h 3KB
z10.png 8KB
z11.png 8KB
z12.png 7KB
z8.png 7KB
z4.png 8KB
z19.png 7KB
z20.png 7KB
z16.png 8KB
calci_Prefix.pch 179B
calci-Info.plist 909B
MainWindow.xib 20KB
calci.xcodeproj
luojiaqi.mode1v3 39KB
luojiaqi.pbxuser 5KB
project.pbxproj 18KB
z9.png 7KB
z5.png 8KB
z13.png 7KB
z3.png 8KB
calciViewController.xib 72KB
z14.png 8KB
共 90 条
- 1
资源评论
- seawhaleqq2012-05-08很好,是真的可以运行
罗家齐
- 粉丝: 45
- 资源: 21
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功