milleja46 wrote:
Does anyone know how to make a plain c project or even better build/run a file without a project using xcode so that i could do it while reading my k&r book? i'm trying to learn c so i can venture into c++ and obj c later...
Learn and use vi.
Just do "vi HelloWorld.c". You start in "command mode" where you type i to insert, a to add, etc. Type escape to get back to insert mode. If you are going to be a UNIX programmer, knowledge of vi is not optional.
The same goes for the command line. You can compile that program above with:
clang HelloWorld.c
and then run it with ./a.out
The command line, especially pipes, are another essential part of UNIX.
Of course, using the command line is impractical for all but the smallest projects. You will want to progress to Xcode fairly quickly, but if you are learning using K&R, use vi on the command line. K&R would appreciate that.