Learn C first. If you never have programmed you need to learn the fundamentals of programming. I first wanted to make an app when I started. I then discovered starting in the middle was hard.
Okay I got it. I will learn C then, thanks for letting me know.
Precision is important in programming. Your first post says cocolab.com (note spelling), but there are no general tutorials at the website. There is a completely different website,
http://www.cocoalab.com/, which does have general tutorials. Precision is important. Copy and paste is your friend.
Sorry I was in a hurry. I kind of bought this mac in a whim and wanted to get making apps as fast as possible. It looks like it's going to take a lot more learning and a slower pace than that however.
Okay so I'm just going to get started with my C learning process,
I'll post my struggles here and I hope I can get some good answers and feedback from you guys.
What is the best book or online book on learning C?
Art of War posted:
http://c.learncodethehardway.org/book/
What does everyone else think?
In Chapter 2, Exercise One, he says:
You can put this into a ex1.c then type:
Source 4: Building ex1
1 $ make ex1
2 cc ex1.c -o ex1
Are those terminal commands? Because mine doesn't understand "$" or "make". I have "gcc" though, and when I use it, it creates a file called "a.out", which is only executable through the terminal. When I try to run it by double clicking it in it's directory OSx doesn't know what it is.
How do you compile the program to be the original name instead of a.out, and how can you make it ruinable outside of the terminal?
More importantly, why is he telling me to use characters and commands that don't work?
There were other things in that chapter I didn't understand:
Source 6: Building ex1 with -Wall
1$ rm ex1
2$ CFLAGS="-Wall" make ex1
3cc -Wall ex1.c -o ex1
4ex1.c: In function 'main':
5ex1.c:3: warning: implicit declaration of function 'puts'
6$ ./ex1
7Hello world.
8$
Are these all things he is typing in the terminal? Again there is "$" and now "rm" which he never expained. And what's CLFAGS? and what's -Wall?
2.3 Extra Credit
Open the ex1 file in your text editor and change or delete random parts. Try running it and see what happens.
Print out 5 more lines of text or something more complex than hello world.
Run man 3 puts and read about this function and many others.
How do I run "man 3 puts"?
I did Qbasic programming when I was a kid, so I'm not entirely new.
Is he explaining things properly or should I find a different source?