#Referring to a class1 object in a class2 while both have separate .h and .cpp files from the main

6 messages · Page 1 of 1 (latest)

swift oakBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

teal bridgeBOT
#
Critical error:

Unable to find a codeblock to format!

mighty frigate
#

im not sure how to format it like everyone else

swift oakBOT
#

@mighty frigate

Please Do Not Delete Posts!

Please don't delete forum posts. They can be helpful to refer to later and other members can learn from them. In the future you can use !solved to close a post and mark a post as solved.

mighty frigate
#

i figured it out. apparently, when you create a header file the "guard", #ifndef My_Header_H is important to differentiate the declarations of something or other. I changed the menu.h and player.h header guards to have independent names.
#ifndef Menu_H
#ifndef Player_H

#

!solved