Re: [iPhone-AppDev-Auditors] Assignment 2: descriptionOfProgram and runProgram

Wednesday, February 1, 2012
That's what I tried, I used an implementation similar to the runProgram recursive implementation, didn't quite work it good.

On Wed, Feb 1, 2012 at 12:31 AM, Zhisheng Huang <lorixxhuang@gmail.com> wrote:
You could use Recursive example as is in the demo. but need a little bit condition check for the left bracket and right bracket.
Similar idea with the demo, It is a good practice to learn recurrence as well.

Hope that helps :)


On Tue, Jan 31, 2012 at 11:58 PM, 8vius <lmd411@gmail.com> wrote:
Thanks Zhisheng, about the description, I understand what is asked of me, what I don't know is how to implement it properly.


Luis Miguel Delgado
Tlf: 0412-9902142

My profiles: Facebook Twitter
Contact me: Google Talk lmd411@gmail.com


On Wed, Feb 1, 2012 at 12:17 AM, Zhisheng Huang <lorixxhuang@gmail.com> wrote:
Hi Luis,

From my understanding, you have to parse and return a nice readable format from the program stack:

For example:

In the Program stack we have, 4, 5, *, Sqrt ,    in the descriptionOfProgram you need to return Sqrt(4*5) , notice the number of left ( and right ).

The runProgram: usingVariable is used only when you have input a variables dictionary. If there is no dictionary input, the result would be calculated by themselves.
So you could just use the same Calculate button and connect to the new method. I attached a screen shot for my UI and noticed that Description is above the input field.

Regards,
Zhisheng Huang 





On Jan 31, 2012, at 9:53 PM, 8vius wrote:

Hey all, I know I'm a little late on this but since I just recently got Lion thought I'd update my iOS Dev lectures as well.

I'm a little confused on how to implement descriptionOfProgram, I have a somewhat similar implementation as runProgram, but I seem to be missing something since I get what seems to be duplicated output, would appreciate some help here. 

Also I'm not sure what to do to execute the runProgramWithVariables, did you set up a button in the UI just to do that or what?

Thanks ahead.

Luis Miguel Delgado
Tlf: 0412-9902142

My profiles: Facebook Twitter
Contact me: Google Talk lmd411@gmail.com

--
You received this message because you are subscribed to the Google Groups "iPhone Application Development Auditors" group.
To post to this group, send email to iphone-appdev-auditors@googlegroups.com.
To unsubscribe from this group, send email to iphone-appdev-auditors+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/iphone-appdev-auditors?hl=en.

--
You received this message because you are subscribed to the Google Groups "iPhone Application Development Auditors" group.
To post to this group, send email to iphone-appdev-auditors@googlegroups.com.
To unsubscribe from this group, send email to iphone-appdev-auditors+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/iphone-appdev-auditors?hl=en.

--
You received this message because you are subscribed to the Google Groups "iPhone Application Development Auditors" group.
To post to this group, send email to iphone-appdev-auditors@googlegroups.com.
To unsubscribe from this group, send email to iphone-appdev-auditors+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/iphone-appdev-auditors?hl=en.

--
You received this message because you are subscribed to the Google Groups "iPhone Application Development Auditors" group.
To post to this group, send email to iphone-appdev-auditors@googlegroups.com.
To unsubscribe from this group, send email to iphone-appdev-auditors+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/iphone-appdev-auditors?hl=en.

--
You received this message because you are subscribed to the Google Groups "iPhone Application Development Auditors" group.
To post to this group, send email to iphone-appdev-auditors@googlegroups.com.
To unsubscribe from this group, send email to iphone-appdev-auditors+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/iphone-appdev-auditors?hl=en.

0 comments:

Post a Comment