[Summary] Combing the knowledge points of the C language practical algorithm series _ With the code of each module of the student management system

1. Features of four memory areas

a) The variable space of the global area defaults to 00 for each byte, the stack space defaults to cc, and the heap defaults to cd
b) Heap, global area (static area), string constant area, and the distance between the stack area Very large, the stack area may be accessed the fastest;

2. The difference between C language and C++ compiler:

a) All .c files are compiled according to C compiler in VC or VS compiler;
b) All .cpp files are compiled according to C++ compiler in VC or VS compiler;
c) All structures in C compiler The name must specify the struct keyword when calling;
d) Temporary variables in all functions in the C compiler must be defined at the beginning of the function;
Linux also has a C language compiler and a C++ compiler: The
gcc command is compiled by the C compiler;
The g++ command is compiled according to the C++ compiler;

3. Assignment of structure objects

a) memcpy
b) Direct assignment between structure objects a=b;

4. Student information management system:

a) When entering data, check that the student ID has been entered before to prevent duplicate student IDs from being entered;
b) Development of the secondary sub-menu:
a) When browsing, you can sort by student ID, name or grade;
b) When searching You can search by student ID, name, or score segment;
c) Save the student information entered each time to a file, and it will be automatically loaded when you start it next time;

5、getc,fgetc:

-1

Guess you like

Origin blog.csdn.net/wlwdecs_dn/article/details/111567562