| Article: |
C is for Cocoa | |
| Subject: | Re: This made me install the dev tools | |
| Date: | 2003-07-23 21:04:40 | |
| From: | anonymous2 | |
|
Response to: This made me install the dev tools
|
||
|
If you're anxious to get Mr. Roby's little sample to compile and run, let me give you a little nudge.
|
||
Showing messages 1 through 2 of 2.
-
Re: This made me install the dev tools
2003-07-23 22:17:35 anonymous2 [View]
-
Re: This made me install the dev tools
2003-07-23 21:07:56 anonymous2 [View]
Whoops! I should have tested the program before I hit 'Submit'. Here is the revised code:
#include <stdio.h>
int main()
{
//Computes our favorite number
int favoriteNumber = (3 * 4) / 2; /*is anyone's favorite number not an int? */
favoriteNumber = favoriteNumber + 2;
/* now let's tell the world
what our favorite number is! */
printf("My favorite number is %d!\n", favoriteNumber);
}



You can do all your typing in Project Builder. It's a perfectly servicable text editor. Or use BBEdit / BBEdit Lite. Much friendlier.