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 trialKian Akhavan
228 PointsSo i'm writing the say array as the one you've done on here, but it spits out (11db) or (lldb)
include <stdio.h>
int main() {
float numbers_geeks_love[3];
numbers_geeks_love[0] = 3.1415;
numbers_geeks_love[1] = 1.6180;
numbers_geeks_love[2] = 1.4142;
printf("PI %f\n", numbers_geeks_love[0]);
return 0;
}
4 Answers
Stone Preston
42,016 Pointsthere should be some more information in the debug console. can you scroll down in the console a bit and post the whole error message you get. post all the text from the console
Stone Preston
42,016 Pointsthats the debug console. is there anything else? I dont really see anything wrong with your code. try disabling all breakpoints by pressing command + y and run again
Kian Akhavan
228 PointsI'm not sure where the debug console is
But here is some more text from the bottom right box?! (What is that called btw?)
Printing description of numbers_geeks_love: (float [3]) numbers_geeks_love = ([0] = 3.1415, [1] = 1.61800003, [2] = 1.41419995) (lldb)
Kian Akhavan
228 PointsNice! It worked. Thank you.
So why am I pressing command + y?
Stone Preston
42,016 Pointscommand + y disables all breakpoints. you must have accidentally set a breakpoint in your code. you can delete it by pressing command + 7 to bring up the breakpoint navigator, right clicking on the breakpoint, and selecting delete. A breakpoint sets a point in your code where program execution stops and you can step through the code line by line. It is a debugging tool