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 trialHeda Wang
561 PointsThe quiz is awful.
unstable ++; is wrong, because there is a space? WTF...
Amit Bijlani
Treehouse Guest TeacherSorry about that, we realize that our fill in the blanks are a bit restrictive. It's on our radar to make them a bit more flexible in the near future.
4 Answers
Heda Wang
561 PointsWell, the quiz says auto increment the variable "unstable", and "unstable++;" is right, "unstable ++;" is wrong.(there is a space)
Adam Sackfield
Courses Plus Student 19,663 PointsGreat! I will tag the tutors to look into this, I know nothing about iOS as stuck on Windows :(
Heda Wang
561 PointsWell, it seems the code engine is not smart enough. "NSLog(string);" and "NSLog(@"%@", string)" is the same if string is an NSString* variable. But the code engine seems only take the latter as the right answer.
John Carr
Courses Plus Student 1,984 PointsYour working with C not objective C in that quiz. printf And thinking back i think the same happened me in that quiz with the auto increment.
Heda Wang
561 PointsWell, NSLog takes at least one argument NSString *format. So if string is an NSString variable, "NSLog(string);" and "NSLog(@"%@", string)" give you the same output.
John Carr
Courses Plus Student 1,984 PointsYou are doing the C tutorials
float fa = 5.0 / 0.5;
printf("fa %f\n", fa);
int unstable = 25;
unstable -= 5;
printf("unstable %d\n", unstable);
You do not need NSLog or NSString in that quiz
Heda Wang
561 PointsOh, I know what you mean. I've commented under the wrong chapter.
But when I realize that there is a problem, I've already submitted. And once I submitted, there is no clickable discussion button.
John Carr
Courses Plus Student 1,984 PointsYes i saw what you meant on the auto increment i went and done that quiz again. If you want to start a new discussion just click on start discussion , click what topic - IOS and what your topic is - lets say NSLog and NSString
Adam Sackfield
Courses Plus Student 19,663 PointsAdam Sackfield
Courses Plus Student 19,663 PointsIf you are going to critique the content then more information would be greatly received so the staff are able to look into your issues. From your post I can't really tell the problems you are having. Could you please edit it and add some more content as to your issue. Thanks