Codewarrior / xcode and C

Orbit

MacMan
ok today at school we started learing C in codewarrior and since i dont have a copy of it was thinking i can use xcode instead but have never used it so i am unsure of how to set it up so i can practice my hello world scripts lol nah we are past that now.

So wat type of project file shud i use? carbon, cocoa etc
and wat file do i type in all my code (the void main(void) and printf ("hello world") and so on?

thanks
 
I don't know if I'd even bother with projects if you're not going to be using xcode's managed build system. Just make some plain old files, edit them in xcode, and build them from the commandline.

A makefile could make building and testing a whole lot easier. Don't know if they're teaching you how to write a makefile, but they certainly should be. If they aren't, you should probably learn for yourself...
 
ok then could you please explain how to make some plain old files, edit them in xcode, and build them from the commandline.
and whats a make file
thanks
 
Are they teaching you how to make command line programs right now or GUI programs?
If you're just making something simple like:
Code:
void main()
{
    printf("Hello World");
}

Then select the command-line app project from XCode.
 
yeah thanks i figured it all out lastnite :)
yes we are making command line programs
but they are a little more basic than just printf("hello world");
we are now onto loops and if & and. and all that type of stuff
 
Back
Top