Re: Newbie C Questions
Re: Newbie C Questions
- Subject: Re: Newbie C Questions
- From: Bob Savage <email@hidden>
- Date: Tue, 29 Jan 2002 22:39:21 -0600
on 1/29/02 9:05 PM, Tom McKenna wrote:
>
>
* When I am using Project Builder and I want to create a simple C
>
application, what kind of project should I be opening? (I have been
>
using the 'Standard Tool' option in PB...)
the 'Standard Tool' is correct. When you start learning Objective-C you
might want to try out at least one 'Foundation Tool' which will be very
similar. Try converting a beginning C project into Objective-C (without
using a GUI); this can be very instructive.
>
* Once I finish this book on C, I would like to learn Objective-C. Is
>
there a beginner's book that doesn't work under the assumption that you
>
know C++ or Java? If not, what should I do next?
There is an excellent book in PDF on your hard drive already. Look in the
/Developer/Documentation/Cocoa/ObjectiveC/ directory. After you read that
which is generally about the language (not a "teach you how to do it", but a
"this is the idea behind it" book), take a look at a more tutorial oriented
book. The new book by Hillegas is quite good, but I think the "Learning
Cocoa" book is unfairly criticized. I learned quite a lot from it.
>
* One of my tutorial apps compiles fine in PB, but it won't run in PB.
>
It does run perfectly in the Terminal. Am I doing something wrong?
...
>
scanf(" %f", &gr1);
It can't run in PB because PB us prints to the run window, it doesn't accept
input. Run things like this from a terminal window.
Best of luck,
Bob