马上去找人买100个包子,求哪位大神能赐教帮忙提点一下怎么写下面这个project,谢 谢啦 不好意思,学了几节课又不知道怎么入手了。。想了一周实在不知道怎么写出来,不知 道怎么一个个调取然后分析,感觉很多变量和变化情况,直接写code好像太复杂了 题目是 In reverse Polish notation the operators follow their operands; To add 3 and 4, one would write "3 4 +" rather than "3 + 4". If there are multiple operations, the operator is given immediately after its second operand The expression written "3 − 4 + 5” would be written "3 4 − 5 +" in RPN: first subtract 4 from 3, then add 5 to that An advantage of RPN is that it obviates the need for parentheses that are required by infix notation. * Produce a Reverse Polish Notation calculator that operates on input files. * First, ask the user for the location of an input file. Open this file. * Read in the input file, and interpret the input data as RPN. Each new line should be interpreted as its own math problem. * Display the resulting answers to the screen. * If a math problem has an error in its syntax, display SYNTAX ERROR for that line and continue with the next problem. * Do not support unary operators. * Add support for the following operators, written exactly as shown: + - * / % pow * Math problems are guaranteed to not have more than 5 total operands. As a result, you do not need to use arrays (which we have not yet covered). Sample Input: 3 4 5.0 * − 7 4. * 8 30 + banana 9 10 + 30 - Sample Output: -17 7 SYNTAX ERROR SYNTAX ERROR -11 At student request, we've added some additional examples: 4. 7 3-+ 2 -3+ 900 40.65-20+ 45.2 23.999% Results: 9 879.35 22 谢谢
c*i
9 楼
Starwood Preferred Guest信用卡 开卡25000 bonus points可在二手版换500刀 http://goo.gl/gNkdA Earn 10,000 Starpoints with your first purchase and an additional 15,000 Starpoints when you spend $5,000 in 6 months http://goo.gl/gNkdA 填完后会在60秒告诉你结果,这个卡是第一年免年费的,之后是$65, 可以在第二年关 闭避免被收取年费。即使第二年开始有年费,个人觉得还是一张值得长期使用的信用卡 。 消费一笔后两周内会把10000 point在你卡上,不会使用的人可以兑换$100 giftcard. 选择其他的 giftcard(Starbucks, Gap,Nordstrom)请选择Redeem in other partners。请注意这一万点就可以换到最高5晚的category 1的酒店入住了。 下面的是非常关键的内容: 大家可以直接在二手版直接将spg 25000点数兑换成500美金。 请大家千万不要把点数兑换以上的250刀 amazon gift card,因为可以直接使用获得的 点数入住SPG酒店,Category 1: 以aloft为例,可以直接用2000points/晚 入住周末 房,或者以1200 points+25刀 在任意天入住。 Category 2: 以Four Points by Sheraton为例,可以使用3000points/晚 入住周末房, 或者以1600 points +30刀在任 意天入住。 即使是消费第一笔后获得的10000points,也可以获得最高五晚的酒店入住。而且这类 酒店在中国区也是有效的。如果消费满5000刀,更可以获得另外的最高七晚的酒店入住。
P*X
10 楼
Location:Fairfax, Virginia Job requirement:An entry/junior-level position for candidate with B.S. in Civil/Environmental or related engineering background.Master's degree preferred.Perform supporting role for modeling, data management and processing, reporting, and programming activities. GIS and AutoCAD capabilities are required. 请把简历发到我站内信箱, 多谢.