Skip to content

Could you explain your header files please? #1

@Miaozu-Humphrey

Description

@Miaozu-Humphrey

I am a new C++ learner following Accelerated C++ and very grateful for your solutions. I can understand most parts of your code. But I am still confused about header files. What do these #ifndef or #define statements mean? You write header for every CPP file and I can't find out why we need them. Could you explain these header files please and why we need them?
#ifndef GUARD_0_3_H
#define GUARD_0_3_H

void ex0_3();

#endif // !GUARD_0_3_H

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions