I'm trying to use a class within another class but the class(CustomerList) isn't being highlighted in the EmployeeRecord.h but it is in the EmployeeRecord.cpp. This is my EmployeeRecord.cpp
#include "EmployeeRecord.h"
#include <string>
#include <iostream>
#include "CustomerList.h"
using namespace std;
EmployeeRecord::EmployeeRecord()
{
m_iEmployeeID = 0;
strcpy(m_sFirstName, "");
strcpy(m_sLastName,"");
m_iDeptID = 0;
m_dSalary = 0.0;
*m_pCustomerList = new CustomerList;
}
This is my EmployeeRecord.h
#pragma once
#include "CustomerList.h"
class EmployeeRecord
{
private:
int m_iEmployeeID;
char m_sFirstName[32];
char m_sLastName[32];
int m_iDeptID;
double m_dSalary;
CustomerList *m_pCustomerList;
In the .cpp the pointer says it's unidentified but I don't know if that's because CustomerList isn't being recognized in the .h or if it's another issue.