- @implementation ayViewController{
-
- //存储运算符号
- char operater;
-
- //存储输入数据
- int currentNumber;
-
- BOOL firstNumber;
-
- BOOL secondNumber;
-
- ayCaculate *caculate;
-
- NSMutableString *displayString;
- }
- -(void)processDigit:(int)digit{
- currentNumber = currentNumber * 10 +digit;
-
- [displayString appendString:[NSString stringWithFormat:@"%d",digit]];
-
- _display.text = displayString;
- }
复制代码
声明私有变量。 |