#include <iostream>
using namespace std;
const int SIZE=30;
const int bSIZE=3;
void Initialize(struct Book*[], int size);
struct Book
{string title[SIZE]; string author[SIZE];};
int main()
{
int choice1, choice2;
string title;
string author;
Book *arrbook[bSIZE];
Initialize(arrbook,bSIZE);
system ("pause");
return 0;
}
void Initialize(struct Book *[],int size)
{
for(int i=0; i<size; i++)
{
arrbook[i]= new Book;
arrbook[i]={"None","None"};
}
}
When I run this program, it say "arrbook undeclared identifier"
I don't know why. Can you fix my code? what is wrong with passing structure code?