PDA

View Full Version : xcode C help




uaecasher
Mar 4, 2009, 09:34 AM
hello, i'm new to xcode so i started a new project in command line utility -> standard tool. when i press build and run, it does but does not show the program. here is the code




#include <stdio.h>

int main (int argc, const char * argv[]) {
// insert code here...
printf("Hello, World!\n");
return 0;
}



Cromulent
Mar 4, 2009, 10:24 AM
hello, i'm new to xcode so i started a new project in command line utility -> standard tool. when i press build and run, it does but does not show the program. here is the code




#include <stdio.h>

int main (int argc, const char * argv[]) {
// insert code here...
printf("Hello, World!\n");
return 0;
}


You need to open the console to see the output. Go to the Run menu and select the Console item. There is also an option in the preferences to automatically open the console when you build and run your applications.

uaecasher
Mar 4, 2009, 10:39 AM
thanks for the help can u tell me where to find the console preferences

Cromulent
Mar 4, 2009, 11:01 AM
thanks for the help can u tell me where to find the console preferences

In the preferences.

gnasher729
Mar 4, 2009, 11:25 AM
In the preferences.

I think what Cromulent is trying to say in very few words is that when you use a complex and powerful tool like XCode, you will get the largest benefit by spending a few hours going through all the menus and trying out what they do, going through the preferences and figuring out what they are there for, and so on, reading the documentation as needed, instead of going the easy route and asking questions on MacRumors.

Eventually you will get to a stage where there is nobody online who will be able to answer your questions, so you sooner you get used to figuring out things, the better. And very often Google is your friend.

uaecasher
Mar 4, 2009, 11:32 AM
I think what Cromulent is trying to say in very few words is that when you use a complex and powerful tool like XCode, you will get the largest benefit by spending a few hours going through all the menus and trying out what they do, going through the preferences and figuring out what they are there for, and so on, reading the documentation as needed, instead of going the easy route and asking questions on MacRumors.

Eventually you will get to a stage where there is nobody online who will be able to answer your questions, so you sooner you get used to figuring out things, the better. And very often Google is your friend.

actually i call google "uncle google" :p, i tried to find the setting in preferences but couldn't find it. I really grateful for your help :D