why is this c++ code not working,it is saying “28 5 C:\Users\USER\Desktop\exam\library super.cpp [Error] expected primary-expression before ‘]’ token”. i need help

#include<iostream>
#include<string.h>
using namespace std;

class books{
char a,b,c,d[],e,f[];
int copies,aprice,bprice,cprice,acopies,bcopies,ccopies;
char author,publisher,stockposition,u[4],g[4];
char u1[10],g1[10],u2[10],g2[10],u3[10],g3[10];
public:
void enter(void);
void authors(void);
books(void);

};
books::books(void){
acopies=10;
bcopies=5;
ccopies=7;
aprice=9000;
bprice=5000…

Kayongo Ben

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store