Adding Pointer results in error to class error overloaded member function not found
===

I am having some problems with my code. specifically:

    enter code here

  

          bool Customer::checkout(Inventory* inv) {
      double total = 0;
      for( unsigned int i=0; i < _Cart.size(); i++ ) {
    	  total += _Cart[i].price; // price * quantity??
      }
      if( Customer.balance < total ) {
    	  return false;
      }
      else {
    	  unsigned int i =0;
    	for ( i =0; i < inv->_Inv.size(); i++) {//go through inventory, check names, if there is a match, 
    		  if (inv->_Inv[i].name == _Cart[i].name) {		//decrement the quantity accordingly, if there is no match, 
    			  inv->_Inv[i].quant -= _Cart[i].quant;
    			  break;
    		}
    	}
    	if( i == inv->_Inv.size() ) {  //you need to push the new food into the inventory vector
    		inv->_Inv.push_back(_Cart[i]);
    		return true;
    	}

-------------------------------------------------------------------------------------------
and in my .h file i have

    class Customer {
      public:
        Customer( string n, int c, double b );
        bool addCart( Food f );
    	bool removeCart( Food f );
      	void report(); //to do
    	bool checkout(Inventory* inv); //to do
      protected:
        string name;
        int card;
    	double balance;
    	//CreditCard _CC;
        vector<Food> _Cart;
    };

    class Inventory {
      public: 
        vector<Food> _Inv;
        vector<Food> _Purchases;
        int interval;
        void firststock( string fileName );
    	void showFirststock( string fileName);
        void restock( string file, int inter );
        void summary(); //to do

The errors i get are the following:

 1. error C2061: syntax error : identifier 'Inventory' error C2061: (Regarding bool checkout(Inventory* inv);)
 2.  syntax error : identifier 'Inventory' bool 
 3.   Customer::checkout(Inventory *)' : overloaded member function not
    found in 'Customer' see declaration of 'Customer' .... (Regarding bool Customer::checkout(Inventory* inv))

Please help