1 2 3 4 5 6 7 8 9 10 11 12
|
//prototype for function to print the content of array on screen
void showInfo(Author a[], int size);
//prototype for function to allow user to enter values into array
void getInfo(Author a[], int size);
const int SIZE = 3;
int main()
{ //authorName//title,price
Author a[] = { {"NONE", {{"NONE",0}, {"NONE",0}, {"NONE",0}},
{{"NONE",0}, {"NONE",0}, {"NONE",0}},
{{"NONE",0}, {"NONE",0}, {"NONE",0}}, } } ;
|