please refer to my previously asked question:
How the #*&?!! do I learn C?
as this is a continuation of that same theme. actually, i’m trying to make myself a little clearer and hopefully get the info i really need.
my main problem is that i cannot try out programs on my mac. i have mpw--and therefore a c and c++ compiler (mrc and mrcp). i should be able to follow along with the online c tutorials, but i don't know how to use the compiler well enough and don't know how to run my programs.
i have been able to run one program now (yea, it’s hello world), but did not really understand what i was doing (the compiling part--the c lang. part was easy). i had to create a makefile and then build a tool--i think. actually i composed my c program in a new window, saved it as hello.c, chose “create build commands...” from the build menu selecting “tool” instead of “application” (tool was they key, why didn’t the “beginner’s” notes say anything about it?), and then chose “build” from the build menu. after that i could type “hello” from the command line and “hello world” would spit out on the next line.
so, i need to learn to write and compile c programs within the MPW framework. maybe the tool thing was the key and i’ll be able to progress on my own now. but this morning i read over a tutorial that told me i should be using <stdin> instead of <stdio>. was this a typo? lots of the stuff i’ve read say that compilers have their own little perks and expectations of the programmer. i need to know what those particulars are for MPW. if you can give me even a small number of those key issues, i’d be very, very happy.
oh...please don’t give me any urls out of apple.com. i’ve thoroughly checkout their programming links and have all their docs--they don’t help. i guess apple never budgeted for good writers.