Моя визуальная студия 2017 не хочет признавать мой импорт? При построении я получаю сообщение об ошибке «C2065: 'Реестр': необъявленный идентификатор» в строке 18, где я составляю список реестра, хотя явно включен Registry.h. Что я здесь делаю не так? Когда я искал ответ, я просто нашел материал, в котором ошибка пытается использовать что-то, что не включено.
#pragma once
#include <iostream>
#include <list>
#include "Teacher.h"
#include "Registry.h"
#include "stdafx.h"
using namespace std;
#ifndef LESSON_H
#define LESSON_H
class Lesson
{
private:
double price; //Price charged for single lesson
int maxSize; //Maximum number of students allowed in the class
string date; //Date the class takes place
int numStudent; //Number of students currently in the class
list<Registry> Roster; //All current registrys for the lesson
int lessonID; //Unique identifier
string name; //Name of the lesson
Teacher teacher; //the Teacher hosting lesson
string category; //Named category of the lesson
public:
Lesson(Teacher teacher, string name, string category, double price, int maxSize, string date);
~Lesson();
};
#endif
Да, это так. Это проблема?
Рекомендуемая литература: Устранение ошибок сборки из-за циклической зависимости между классами





Включает ли "Registry.h" "Lesson.h"?