Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.
But I get a value of 0 for area and perimeter. Please tell me what is wrong.
- When do I have to use "return"? Ch 4 in Programming in Objective-C doesn't really use it in the examples so I've avoided it until going to the classroom.com forums. I have not used it for the previous chapter 4 examples. What (simple)alternatives are there to using return(It's just now dawning on me that there are multiple ways to do things)?
- When should I use "print" vs. NSLog? As in when should I predefine the "print" method in the implementation section vs. simply using an NSLog method(it's a method, right?) in the program section?
- Can I use the "print" method to print to display more than one thing? Meaning can I have one method displays "a+b -c" and another display "a+f*h", like a print1 and a print2?
This has been very difficult for me so far and I'm still wrapping my head around the whole "method, object, argument" stuff so if in your responses you could explicitly label the thing you're talking about as a method, object, etc, that would really help me out.
One final question: When I copy/paste code that I write up in Pages, I always get an error in the "NSLog(@"...." line, when I re-write the line in Xcode, the error usually goes away, I assume this has something to do with an unrecognized font or something in Pages, what text editor do you guys use to write up code in?