[英]Error with an element of a struct
I have a fast question about the following struct: 我对以下结构有一个快速的疑问:
typedef struct {
char folder_name[MAX_FOLDER_NAME];
Email* emails[MAX_FOLDER_EMAILS];
int size;
int empty;
int protected;
} Folder;
Why Netbeans is not recognizing the "int protected"? 为什么Netbeans无法识别“受保护的整数”? The program is saying "unexpected int" and "unexpected ;".
该程序说“意外的int”和“意外的;”。
protected
是C ++中的关键字,不允许作为变量名。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.