- VS2017 scanf is not available
#define _CRT_SECURE_NO_WARNINGS is placed at the beginning of the c file
- Compile link error
with wrong function name. If you have this prompt to compile, click No - Variable redefinition, function name redefinition error
- There can be multiple c files in a project, but only one main function
(1) If there are multiple .c files, a header file must be created and function declarations must be made. Put the header files of other .c files into your own .h header file
(2) Add your own defined header files to all .c files (" "means to search from the current directory)
- Try not to use global variables,
because if global variables and local variables have the same name, problems will occur - The structure type and the structure variable name are the same, which will cause a space application error,
otherwise it will cause the access out of bounds
Some common errors in c language
Guess you like
Origin blog.csdn.net/weixin_43722052/article/details/113796163
Recommended
Ranking