Good day . The problem is that I do not understand how to connect header files correctly. There are several classes (let it be 5 classes, then 5 heading and 5 avg). There is a separate file to describe the functions for these classes. (that is, with the use of these classes). And in the same five classes you need to use the file in which the functions are described. Please tell me how to implement this, but now only a redefenition error ..

  • 2
    You probably forgot include guard? - VladD
  • one
    Probably, it would be right to make the connection of the necessary header file somewhere at the very top of the connection hierarchy, without forgetting to activate protection against re-enabling (I mean define ... endif) - AseN
  • I tried with include guard, pragma once. But at the same time in the header file where described additional. functions on working with classes writes undeclared identifier - CROSP

0