1 /* 2 计算器类 3 1>返回π 4 2>计算两个整数的平方 5 3>计算两个整数的和 6 */ 7 8 9 #import 10 11 @interface Calculator: NSObject12 //方法名:pi13 - (double) pi;14 15 //OC方...
分类:
其他好文 时间:
2014-11-24 20:26:59
阅读次数:
235
CSU 1336: Interesting Calculator(BFS啊 湖南省第九届大学生计算机程序设计竞赛)...
分类:
其他好文 时间:
2014-11-22 20:17:16
阅读次数:
197
描述szhhck have an old calculator bought 5 years ago.he find the old machine can just calculate expressions like this :A-B、A+B、A*B、A/B、A%B.because it is...
分类:
其他好文 时间:
2014-11-15 21:29:55
阅读次数:
236
所用算法:表达式计算(中缀式表达式转后缀表达式,后缀表达式求值)
界面没怎么设计,有时间再美化!
MainActivity.java
package com.example.calculator;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Ma...
分类:
移动开发 时间:
2014-11-11 19:19:09
阅读次数:
309
创建自定义函数标签步骤: 1、创建类,并且方法只能是静态 public static void operation(calculator cal) 2、书写tld 1 5 1.0//版本 6 myfn//名称 7 http://www.cnblogs.com/liuw...
分类:
Web程序 时间:
2014-11-11 18:45:34
阅读次数:
252
题目来源:A Broken Calculator题目如下(链接有可能无法访问):A Broken CalculatorTime limit: 2sec /Stack limit: 256MB /Memory limit: 256MBProblemDave's calculator is broken...
分类:
其他好文 时间:
2014-11-04 01:25:28
阅读次数:
251
Gary's Calculator
Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 950 Accepted Submission(s): 209
Problem Description
Gary has f...
分类:
其他好文 时间:
2014-10-10 01:32:53
阅读次数:
250
.h#import @interface CalculatorBrain : NSObject-(void)pushOperand:(double)operand;-(double)performOperation:(NSString *)operation;@property(readonly)i...
分类:
其他好文 时间:
2014-10-04 11:40:46
阅读次数:
206
CalculatorViewController.h//iOS> Application > Single View Application 建立一个模板controller和空白View#import @interface CalculatorViewController : UIViewCont...
分类:
其他好文 时间:
2014-10-03 14:03:24
阅读次数:
192
RPN(Reverse Polish Notation),逆波兰表达式。RPN Calculator is a calculator that uses the Reverse Polish Notation method of user interaction, which is typicall...
分类:
其他好文 时间:
2014-10-03 13:11:44
阅读次数:
199