I'm trying to teach myself C++ and one small detail that I don't understand keeps bugging me. I understand the need for header guards but I don't understand the exact syntax. For example. If I have a header file called MyHeader.hpp and I wanted to include it without guards I would write
#include "MyHeader.hpp"
However, all the tutorials I've looked at seem to indicate the way to do this with guards would be something like
#ifndef MYHEADER_HPP
#define MYHEADER_HPP
My question is how does MYHEADER_HPP in the #ifndef/#define equate to the actual file name "MyHeader.hpp" in the original include statement?
Thanks