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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Matthew Lawrence](https://secure.gravatar.com/avatar/f16257701f1e2e99b142da3f33369f91?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Matthew Lawrence
874 PointsStill get "hello world"
I think I asked this question in the wrong location, so I'll try here again:
I've added the 3 variables (and removed the previous hello world printf line) and get no errors when I compile/run, but the output is still hello world. Which has me baffled. Not sure how to add a screen shot. I've checked the file location, changing directory, etc but still get hello world. Any suggestions?
2 Answers
![Holger Liesegang](https://secure.gravatar.com/avatar/114ef70406fce64fa70f90ad3e04ed09?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Holger Liesegang
50,595 PointsWelcome to Treehouse, Matthew Lawrence !
Can you please post your code? It should look something like this:
#include <stdio.h>
int main()
{
int days_in_a_week = 7;
float cm_to_in = 2.54;
char the_w;
the_w = 'W';
printf("%d days in a week.\n", days_in_a_week);
printf("%f cm per in.\n", cm_to_in);
printf("The %c is a cool hotel\n", the_w);
return 0;
}
![Matthew Lawrence](https://secure.gravatar.com/avatar/f16257701f1e2e99b142da3f33369f91?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Matthew Lawrence
874 PointsYup, that's what my code looked like. I gave up, deleted all my folders and started all over again with a brand new project (no copying an pasting of old projects) and now Xcode works as it should. I have no idea what was happening but it seems fine now. Definitely wasn't a problem with the code I was writing, but something to do with where Xcode was looking for the executable.
Thanks for the response, though!