Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Objective-C Basics (Retired) Functional Programming in C Conditionals

Frustrations

I am doing a free trial of this program and although it is a great program i find it very frustrating that you basically have to start a discussion to get any assistance. The help the program does offer is very vague on how to complete the task, even after watching the videos multiple times sometimes i feel that the questions aren't even covered for the most part! There should be a step by step help guide to help understand if the video doesn't cover it all.

5 Answers

What are you having issues with? Posting on the forums is a great way to get help. Someone is always on & most of the time you get an answer within a few hours.

Looks like the quiz is about IF and else and else if. Let me know where you are getting stuck and I will help.

:) Welcome to Treehouse!

int i = 0; ___________ (i) { _______________ 0 : break; }

Even after watching the video 3 times and doing the lessons in Xcode with him, this whole statement confuses the heck out of me, maybe i am not cut out for this though I'm just giving it a try. Im not sure if I'm to be entering the components that were listed with the switch or what and could be please explain further why whatever goes there does. like to be honest i have no idea how you guys can just do all this so quickly like after watching the first few lessons and doing the test, i feel like i understand what he is talking about but when it comes down to actually executing it, down right impossible. When you guys were first learning was it frustrating? like i feel to understand this i would probably need to go back to grade 10 math and start all over again.

int i = 0;

                    ( i == 0 ) {

printf("0" ); } { printf("something else" ); }

This as well just boggles my mind and after watching the video multiple times i would have no clue what to put here. I really appreciate your comment! I'm just giving this a try so I'm not sure how far i will go into it as I'm sure it only gets more complicated! you guys seem like a great bunch of guys who are willing to help each other, thats great to see now a days!

Maybe i should go read some binary code :P

Cheers

Codyvan182

Cody, no one gets this stuff the first time, second or third. I started coding the summer of 2012. My first year was frustrating. I thought about quitting many times. I had no Treehouse, only books, and stack overflow. I'm leaving for work right now. I'll explain whats going on in the lesson as soon as I have some free time today. We can work it out together. I find it helps when I search the topic in google as well. Look for other resources that may explain it better.

Here is a good site that explains the basics: http://rypress.com/tutorials/objective-c/c-basics.html

if ( i < 0 ){

printf("negative")

} IF ( i > 0 ) {

printf("positive");

} ELSE IF {
printf("zero"); }

i do not understand after reading your link and reviewing videos once again how that is not correct? I've also tried "else if" for both as well to no success, i don't really understand what I'm doing wrong it makes sense to the video tutorial i believe unless i am just way off all together as for the switch case i still do no know where to begin after looking up on wiki an also other reading material

int i = 0;

so as far as reading this i understand it to be that i=0

               ( i ) {

                    0 :
                  break;

}

as far as finning this switch statement i have no idea what gets filled out here and i would really appreciate someone telling me what goes there, and why. maybe I'm just not seeing what needs to be understood. i have been looking over video and such for over 4 hours just on the switch and else/if statement part to get 5/5 on the quiz these 2 questions are testing me and am so frustrated why it doesn't make sense to me

thanks guys,

Cheers

Cody Vanleeuwen

Cody,

My apologies, It's been a long day at work. So to answer your above question:

If (i < 0) {
printf("negative")

} else if (i > 0) {
printf("positive");

}else {
printf("zero");
}

Watch the video again he goes over this. If | else if | else is the order. You can also have if, else if, else if, else if, else.. but if that is the case you may want to use a switch statement if you find yourself using else if many times.

Your doing much better that I was, when I started. Keep working at it man... in a few years you will be making apps like a BOSS.