Here is a brief introduction to some of the entry-level knowledge of C + + programming on Linux/unix machines.
· Background knowledge required
· The basic environment needed for development
· Ways to get help
· Understand basic steps with an instance
Prerequisite Prerequisites:
To write a C program on Linux, you should at least be familiar with the following two basics:
1. C language Programming basis, at least to know some basic grammar, control process, such as programming common sense.
Common knowledge of standard C function libraries is common.
2. General knowledge of the operation of Linux/unix, master of commonly used shell commands, such as LS, CAT, CP, mkdir ... etc.
Environment Required Environment:
1. Linux/unix operating system, you can also use the Cygwin under Windows.
What we're talking about here is done with the shell command line. What if Linux goes into the graphical interface? As long as you open a terminal command, it's exactly the same as the command-line environment (open the Start menu to find the Terminal command).
2. Prerequisite Development tools:
1 Input program needs an editor. Commonly used are VI, Emacs. On the command line, enter VI, Emacs, ... You can enter the editing environment
About VI
About EMACS
2 C language Compiler. Commonly used is the GNU C compiler gcc (compiled C program), g++ (c + + program compiled).
About gcc/g++
About makefile >>>> for simplifying the compilation process
Here is an introductory article Linux under the C language Programming basics, you can first look at