I don't receive any errors at compile, but cout produces lots of empty spaces for some reason without the text I want. I tested with cout and Books[i].Author is not empty.Code:for (int i = 0; i < (BOOK_MAX); ++i)
{
Sort[i] = Books[i].Author;
}
sort(Sort, Sort+BOOK_MAX);
cout << Sort[1] << Sort[2] << Sort[3] << endl;