title: C++ print elements with data from object array
body: <p>I am currently working with object arrays in c++. I have a Book object array filled with data from a datafile, and I need to loop through the array of Book objects and print each of the elements that contain book data, one per line. When I print it out, there are items in the list that are "empty" with no title, no ISBN, a price of 0 and a quantity of 0. How can I get it to only print out the elements that contain data?</p>