收到此错误以及一个错误,指出变量"经理","商店","产品"和库存"未声明,并且它们前面缺少";"。
#include "Manager Info Structure.h"
#include "pch.h"
#include <iostream>
#include <string>
#include <fstream>
#include <array>
using namespace std;
//Vendor Variables
int VENDORSIZE = 3;
ManagerData managers[3];
此处列出了该结构:
#pragma once
struct ManagerData
{
int man_iD;
string man_fname;
string man_lname;
int store_num;
int exp_mon;
int exp_year;
string man_phone;
string man_email;
};
编辑:删除了多余的信息,尝试将 PCH.h 放在解决方案的顶部会导致本文标题中列出的 3 个错误实例以及"man_fname":未知覆盖说明符,"man_lname":未知覆盖说明符,"man_phone":未知覆盖说明符,"man_email":未知覆盖说明符。谢谢大家到目前为止的回答
您很可能缺少一个 ; 在定义上述结构之一之后。