My advice (even though I'm not a master programmer) would be to not learn C and C++ at the same time..I've tried, didn't work out. Learning C first seems more logical.
To compile you run the compiler, for example gcc (Gnu Compiler Collection).
A simple example for a simple C file would be
which would produce an executable called 'a.out' if it succeeds; or,
Code:
gcc code.c -o code-executable
to get a 'code-executable' named executable (instead of the default 'a.out').