   help! :D
  Hi guys im trying to create a game which contains multiple class.h files and one .cpp filebut its not working my menu.h file does not seem to recognize player.hheres my problem:this is what i have so farmenu.h file#ifndef MENU_H_#define MENU_H_#include <iostream>#include "player.h"class menu{public:void mainmenu();void showstats();void about();void updates();};void menu::mainmenu() {char menuchoice;using std::cout;cout << " Welcome to warrior's quest ";cout << "\n 1 - view stats";cout << "\n 2 - about";cout << "\n 3 - updates";std::cin.get(menuchoice);switch (menuchoice){case '1':showstats();break;case '2':about();break;case '3':updates();break;default:cout << menuchoice << ": was not a valid option";break;}}void menu::showstats(){player::startstats(); //ERROR C2352 this is where i can't seem to figure out how to do itstd::cout << "Health: " << m_Health; // C2065 this is a variable from player.h but it doesn't recognize it}void menu::about(){std::cout << "\nABOUT\n";std::cout << "More advanced text based game\n";}void menu::updates() {std::cout << "\nUPDATES\n";std::cout << "No updates as of yet";}#endifplayer.h file#ifndef PLAYER_H_#define PLAYER_H_#include <iostream>class player{public:void startstats();private:int m_Health;};void player::startstats(){m_Health = 100;}#endifmain.cpp#include <iostream>#include "player.h"#include "menu.h"int main(){using namespace std;menu menu1;player player1;menu1.mainmenu();cin.get();cin.get();return 0;}so how do i get another header file to recognize the original one. how do i get 2 class header files to interact   
  The problem isn't that menu can't see player, if you look at the details of the first error, Compiler Error C2352 (C++), you'll notice that you need a player for startstats() to act on.  The same applies for the second error; your intent was to retrieve the current player's health.  However, the code is saying "display the local variable m_Health" which doesn't exist.  Changing it to the_player.m_Health, or player::m_Health (and changing player's members to be static) will fix the problem (granted the_player is a player that's been previously declared and/or passed-by-reference as a parameter).So, how do you get the player1 in your main function to your menu class?  You can do so by passing player1 by reference:class menu{public:void mainmenu( player& the_player );void showstats( player& the_player );void about( player& the_player );void updates( player& the_player );};void menu::showstats( player& the_player ){// player::startstats();// the_player.startstats();  // WARNING:  This resets the player's stats each time this function is called!std::cout << "Health: " << the_player.m_Health; }// The rest of menu member functions are left out as an exercisemenu menu1;player player1;menu1.mainmenu( player1 ); [Edited by - _fastcall on June 28, 2009 3:25:43 PM];  thanks alot i haven't fixed it yet but now i know how and what to do it should be easy.   ;  And dont forget to put your function definitions in a source file, not header.   