Preface
This is a Linux C language learning instructional e-book compiled by the author for nearly a month. This book analyzes the memory and basic syntax of C language programs, especially the understanding of pointers, and some memory analysis. The pictures and texts are in place, and I have compiled books for the first time, hoping to help you who are learning Linux C language.
Development environment introduction
- Operating system Ubuntu 16.04 (64-bit)
- Compiler gcc
- Edit tool VScode remote login
Environment Configuration Guide
VM installation
Installation tutorial reference link: VM installation guide
Ubuntu-16
Ubuntu installation reference link: Ubuntu installation tutorial reference
Mirrors of various versions of Ubuntu : Mirrors of various versions of Ubuntu
VS Code remote configuration
- How to use VS Code on the window to remotely connect to the virtual machine in the VM for programming development
Tutorial connection: VScode remote access configuration
-
vs cdoe plug-in recommendation
-
Code Run placement
- First open the configuration
- Find Code-runner: Executor Map
-
Find C, CPP, modify the compilation script according to the gcc version
Effect after configuration
-
Connect to a virtual machine remotely
-
Write code test, click on the triangle in the upper right corner to quickly compile [shortcut ctrl + alt + N]
-
Code quick format: alt + shift + f
-
Support column programming, hold down alt + arrow keys or click with the mouse
-
Quickly copy the current line alt + shift + arrow keys
-
Adjust the code line alt + arrow keys
-
Quickly cut or delete the entire line ctrl + x
-
Other VScode shortcut keys can click on the setting to query
Book Catalog Guide
-
Introduction and analysis of the compiler compilation process
-
C language basic data structure
-
C language control flow grammar and demonstration, and in-depth analysis and interview questions
-
Control Flow Loop Statement and Branch Statement in C Language
-
The soul and essence of C language of array and pointer
-
The definition and use of C language functions, and some special functions
-
Compound data types, learning object-oriented programming ideas, data is no longer single
-
A deeper understanding of memory, the use of dynamic memory and the distribution of all data and variables, and a deep analysis of the memory of C language programs
-
Compilation of the header file, formally enter the project management
-
Complex macro definitions and some keyword analysis make the program lightning fast
-
Use of dynamic libraries and static libraries, program entry encapsulation, library learning
-
Understand the compiler and gdp debugger, fight against bugs
-
Makefile basic learning, LinuxC enters the project management stage
-
After studying as a teacher, continue to read the recommended readings for further studies
Book portal
- Book web disk link
- Extraction code: yv82