table of Contents
Linux programming (on the title in)
Linux Programming: c and c ++.
Cipian includes compiler, editor, debugger and a version control system Subversion.
Editor's choice
Vim
Vi is an enhanced version of Vim.
sudo apt install vim //下载vim
vim file //vim的命令,新建文件
- Edit and save
vim and insert commands into two modes, insert the character is written, the command is saved search. I key to enter insert mode, vim command strict distinction size, Esc key to return to command mode, HJKL left and right up and down. - Search string
search can / string, forward (forward) is the end of the file search, is /; backward (backword) is? .
:set ignorecase //忽略大小写
:set noignorecase //不忽略
- Replacement string
. . .
windows environment of the source code. . . - Programmers special
: syntax on syntax highlighting
: set autoindent automatic indenting
This can be done both in a personalized profile, to facilitate future.
vim configuration file called vimrc, under the / etc / vim directory. Personalized configuration file named .vimrc, placed in the home directory. (Why not find indent achieve ??)
Emacs
Emacs is committed to creating a comprehensive editor, write code, compile the program, e-mail, playing games.
Graphical programming tools
The introduction of work gedit in Gnome, Kate applicable under KDE environment.
Directly on the command line, enter gedit New.
Highlight and jump lines (ctrl + I) function.
C and C ++ compilers: gcc
GNU C Compiler -> GNU Compiler Collection, began to support multiple languages, including C, C ++, Java and so on.
gcc -o sum summary.c //此-o可以自行命名可执行文件的名字,比如sum
Whatever intermediate file can get.
-c
-S
-E