这是我的 C++ 代码
// XuatChuoiBTHang.h
#pragma once
#include "BieuThuc.h"
#include "BieuThucHang.h"
class XuatChuoiBTHang
{
public:
virtual string xuatChuoi(BieuThucHang* btHang) = 0;
};
// BieuThucHang.h
#pragma once
#include "bieuthuc.h"
#include "XuatChuoiBTHang.h"
class BieuThucHang : public BieuThuc
{
private:
XuatChuoiBTHang* xuatChuoiBTHang;
};
输出是:
“错误 C2061:语法错误:标识符‘BieuThucHang’”
如何解决?