While there are multiple hear file insertions and there are insertions inside those header files, it’s common that a error of duplicate declaration occurs. To solve that, one way is add a macro #ifndef HEADER_FILE_H
after the macro #define <header_file.h>
and add #endif
at the end of the program could solve the confict in header files.