or Connect
AppleInsider › Forums › General › Genius Bar › I want to learn C
New Posts  All Forums:Forum Nav:

I want to learn C

post #1 of 21
Thread Starter 
I've been wanting to learn C so I can take up Objective-C and write for Mac OS X. I have some REALBasic experiance.

Is there a good book or website that can teach me C?

Thanks.
post #2 of 21
I stumbled over a C tutorial over at: <a href="http://www.howstuffworks.com/c.htm" target="_blank"> how stuff works</a> Ive read small amount of it but Im not sure how in depth it goes; the <a href="http://www.howstuffworks.com/c18.htm" target="_blank"> lots more information</a> page has some decent links.

As far as books go, have a look at <a href="http://search.barnesandnoble.com/booksearch/isbnInquiry.asp?userid=16Q67RK1PY&sourceid=0036908 6484212890282&bfdate=06%2D09%2D2002+01%3A34%3A45&i sbn=067231861X" target="_blank"> Sams teach yourself C in 24 hours.</a>
I'm RICH beotch!!!
Reply
I'm RICH beotch!!!
Reply
post #3 of 21
For learning C I always recommend Practical C Programing by Steve Oualline. It is published by O'Reilly.

I'm not sure what books are out for Objective-C, but you can take a look at these sites <a href="http://www.objective-c.org/" target="_blank">http://www.objective-c.org/</a>
<a href="http://www.macdevcenter.com/pub/ct/37" target="_blank">http://www.macdevcenter.com/pub/ct/37</a>
<a href="http://homepage.mac.com/svc/cocoa-objc-mac-os-x/" target="_blank">http://homepage.mac.com/svc/cocoa-objc-mac-os-x/</a>
The only thing necessary for the triumph of evil is for good men to do nothing
Reply
The only thing necessary for the triumph of evil is for good men to do nothing
Reply
post #4 of 21
I second the O'Reilly books suggestions.
I can change my sig again!
Reply
I can change my sig again!
Reply
post #5 of 21
Objective-C and Cocoa programming looks pretty hard.

I just stick to AppleScript Studio and Interface Builder <img src="graemlins/smokin.gif" border="0" alt="[Chilling]" />
post #6 of 21
[quote]Originally posted by Eugene:
<strong>I second the O'Reilly books suggestions.</strong><hr></blockquote>

would you say its something that can be accomplished on your own just using the book? or would you say the book is more aimed to be used in addition to a class.


right now I'm signed up for programming methodology for the summer but I'm most likely gonna swap that for a different class.
post #7 of 21
You can't be a C programmer without owning a copy of <a href="http://www.amazon.com/exec/obidos/ASIN/0131103628/qid=1023644590/sr=2-3/ref=sr_2_3/002-2956903-7743238" target="_blank">this</a>.
post #8 of 21
[quote]Originally posted by applenut:
<strong>

would you say its something that can be accomplished on your own just using the book? </strong><hr></blockquote>

It depends on how smart you are, and how high your tolerance for frustration is.

Personally, I probably would have had a very difficult time trying to teach myself programming without any formal classes. It's a lot like learning how to play a musical instrument -- some people have an innate knack for it, but for most people, it's a HUGE help to have at least a few lessons when starting out.

Anyway, have fun.

o'o'a'a
As long as I am mayor of this city [Jersey City, New Jersey] the great industries are secure. We hear about constitutional rights, free speech and the free press. Every time I hear these words I...
Reply
As long as I am mayor of this city [Jersey City, New Jersey] the great industries are secure. We hear about constitutional rights, free speech and the free press. Every time I hear these words I...
Reply
post #9 of 21
[quote]Originally posted by scott_h_phd:
<strong>You can't be a C programmer without owning a copy of <a href="http://www.amazon.com/exec/obidos/ASIN/0131103628/qid=1023644590/sr=2-3/ref=sr_2_3/002-2956903-7743238" target="_blank">this</a>.</strong><hr></blockquote>

I agree -- I'm working through it right now, and it truly is outstanding. If you already know another language pretty well (especially Java, which is similar to C in a lot of ways), you'd do well to get this book.

However, if you don't have much experience programming, you'd probably be better off with one of the other books mentioned

o'o'a'a

[ 06-09-2002: Message edited by: o'o'a'a ]</p>
As long as I am mayor of this city [Jersey City, New Jersey] the great industries are secure. We hear about constitutional rights, free speech and the free press. Every time I hear these words I...
Reply
As long as I am mayor of this city [Jersey City, New Jersey] the great industries are secure. We hear about constitutional rights, free speech and the free press. Every time I hear these words I...
Reply
post #10 of 21
I've been waiting to find out a bit about C, and you guys sparked my interest with your direction. There is one thing that bugs me though... what the hell is up with the compiler on FreeBSD (or whatever the Unix in OS X is)?

On a UNIX machine, type gcc samp.c -o samp (if gcc does not work, try cc). This line invokes the C compiler called gcc, asks it to compile samp.c and asks it to place the executable file it creates under the name samp. To run the program, type samp (or, on some UNIX machines, ./samp).

I did this (and, yes, the file was in my home directory), and it didn't do squat... There isn't even a gcc command!
post #11 of 21
GCC is not installed by default. You need get Dev Tools.
I can change my sig again!
Reply
I can change my sig again!
Reply
post #12 of 21
Which you'll likely have to download from Apple's web site.
No, the bazaar cannot satisfy users. Neither can the cathedral. Nothing can satisfy users, because software is written to enable rather than satisfy, and because most users are mewling malcontents...
Reply
No, the bazaar cannot satisfy users. Neither can the cathedral. Nothing can satisfy users, because software is written to enable rather than satisfy, and because most users are mewling malcontents...
Reply
post #13 of 21
Thread Starter 
Thanks all. Look like I may be taking some night classes in the future. . .
post #14 of 21
I guess I have to do something new today: agree with Scott.

I used K&R and then the wonderful Algorithms and Data Structures I, II, and III by Sedgewick (Original C versions). Seem to me to both be pretty good, though you'll have to read over "Algorithms" a lot, sometimes, in order to make sense of Sedgwick's ridiculously truncated code. Of course, sometimes I wonder how useful the data structures are, since Cocoa pretty much gives 'em to ya. Bah. Sometimes you just need to roll your own for SPEED.

I am a fan of Cocoa because I don't like OO too much. The way objective C approaches it, though, makes it more straightforward to me than the way C++ and Java do it. However, the caveat is that you'll want to get some sort of smalltalk primer if you want to save some time trying to decypher and figure out the syntax of the OO calls in Cocoa.
Cat: the other white meat
Reply
Cat: the other white meat
Reply
post #15 of 21
Another cool language is steve,the native language of the Breve a-life simulation enviroment-go to spiderland.org if you want to check it out.
post #16 of 21
[quote]Originally posted by Nebagakid:
<strong>Objective-C and Cocoa programming looks pretty hard.</strong><hr></blockquote>

well, to me objc looked pretty f'n hard too, but once i sat down and actually read the tutorial from apple, it was easy. Writing for Cocoa is just a matter of using the libraries that Apple gives you. I wish objc was more popular outside of macx, so i wouldn't feel like i was using a proprietary language; it would then be my preffered lang.
post #17 of 21
[quote]Originally posted by Rick1138:
<strong>go to spiderland.org if you want to check it out.</strong><hr></blockquote>

Wow...a Slint reference. Now THERE'S a band I haven't heard in looooonggg time. Gawd they were great...

ah to be 20 agin'...

*sigh*
As long as I am mayor of this city [Jersey City, New Jersey] the great industries are secure. We hear about constitutional rights, free speech and the free press. Every time I hear these words I...
Reply
As long as I am mayor of this city [Jersey City, New Jersey] the great industries are secure. We hear about constitutional rights, free speech and the free press. Every time I hear these words I...
Reply
post #18 of 21
Thread Starter 
I just checked with our local college. They have an intro to programming class, but it is Fortran!

I don't think I'm ready to jump right into the C class, but Fortran? Is it worthwhile to to learn the ancient lingua?
post #19 of 21
[quote]Originally posted by speechgod:
<strong>I don't think I'm ready to jump right into the C class, but Fortran? Is it worthwhile to to learn the ancient lingua?</strong><hr></blockquote>

That depends. If you're contemplating physics or engineering, sure. FORTRAN is alive and well among simulation builders.

If you're not, stay far away from FORTRAN. It's not the best way to learn modern programming concepts (although the latest iteration of the FORTRAN standard isn't that bad - it isn't that widely used, either).

Really, you'll be hard pressed to do better than Objective-C for learning to program. You just need good books and online references, people to bounce questions off of, and lots of patience. It took me about a year to get really comfortable with C.
"...within intervention's distance of the embassy." - CvB

Original music:
The Mayflies - Black earth Americana. Now on iTMS!
Becca Sutlive - Iowa Fried Rock 'n Roll - now on iTMS!
Reply
"...within intervention's distance of the embassy." - CvB

Original music:
The Mayflies - Black earth Americana. Now on iTMS!
Becca Sutlive - Iowa Fried Rock 'n Roll - now on iTMS!
Reply
post #20 of 21
Introductory Programmer:

Do not learn FORTRAN. FORTRAN is evil. FORTRAN is like learning to drive on a 1950 John Deere. It's the same principle, but it's way harder than it needs to be, and most of it isn't very useful.

If you want a really simple introduction to programming, go with REALBasic.

Otherwise, get a "Learn C in 14 Days" book.
This is not 38, this is old 97!
Reply
This is not 38, this is old 97!
Reply
post #21 of 21
I am just getting started in C too, and bought the O'Reilly book. Very cool book, but it is now out of print. I discovered this by emailing in a question, and being told the book was no longer supported. CodewarriorU looks pretty interesting, I started one class, but got distracted by life. I amn learning this on my own, and I am almost through the O"reilly book. Its hard at times, but you can do it. Email me if you haveany questions on the O'reilly book.
"I'm learning how to meditate, so far so good."
Donald Fagen and Walter Becker
Reply
"I'm learning how to meditate, so far so good."
Donald Fagen and Walter Becker
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Genius Bar
AppleInsider › Forums › General › Genius Bar › I want to learn C