__PPS__ <i-*********@yandex.ru> wrote:
You may use header duards (or whatever to call them) like these:
file foo.hpp:
#ifndef _FOO_HPP_
#define _FOO_HPP_
... dontents of foo.hpp goes here
#endif /* _FOO_HPP_ */
file bar.hpp:
#ifndef _BAR_HPP_
#define _BAR_HPP_
... dontents of bar.hpp goes here
#endif /* _BAR_HPP_ */
Yes, but names starting with an underscore followed by a capital letter
are reserved for the implementation (also, names starting with two
underscores). You should remove them, like FOO_HPP and BAR_HPP.
--
Marcus Kwok