I'm late to the discussion, but I only just now found where Neal wanted me to copy one of my posts over here, so, here it is...
Quote from: (another poster) on November 22, 2009, 02:41:48 AM
For years I have been sniffing around C or C++ don't even know the difference between those.
NOTE: This is greatly simplified - as ususal, there is more to it. But it should be good enough, for now.
C++ is, basically, C with "objects." An object is a collection of data and
the procedures to manipulate that data. Plain old C had data collections (called structures), but no way to create code to manipulate them that would be contained in, and local to
, the data structure. C++ cured that.
When I then saw void in the program I decided I ain't going into the void, that is for black stars.
"void", in this context just means "of indeterminate type," and existed in plain old C, too. Normally a variable is of some specific type (integer, character, etc.), and you could create pointers to them to allow indirect manipulation. But sometimes you didn't know ahead of time what the pointer should point to, so you created a pointer to "void" (an indeterminate type). It became more commonly used in C++.
What about just starting with a little description or sort of step by step getting started with C or C++ requirements?
Rather than go off on what might be a confusing ramble, I'll point you to some decent online tutorials, and standby to answer questions - OK?
C Programming: http://www.freeprogrammingresources.com/ctutor.html
This one even has a special section for GNU C
C++ Programming: http://www.cplusplus.com/doc/tutorial/
And some more: http://www.freeprogrammingresources.com/freetutr.html
If you have PCLOS installed, you have everything you need to start programming in C (gcc), and the C++ compiler (gcc-c++) is in the repo, any text editor and a make utility. Also in the repo is kdevelop, an "Integrated Development Environment for C++/C"
Scout around the freeprogrammingresources site, and you'll find some example code ot play with.
Will C even run under Linux?
Well, the actual C (the source code) never runs - the output of the C compiler runs (and gcc is a Linux C compiler, which is installed by default). A compiler converts the source language into machine language (the actual microprocessor instructions), so all you need is a compiler for your OS and away you go.
How's that. Neal?