I'm currently using an online (chegg) copy of Cay Horstmann's Big C++ Late Objects 3rd edition. I'm on chapter 7 trying to work out one of the examples on structures, and I came across something peculiar. This code seems to present with the expected output, but for some reason the autograder keeps failing me on it. Is there actually something wrong with this code or can I blame it on the textbook?
Here's the worked text field it allows me to edit with the (I completed the code inside the void()
Out of curiosity. what happens if you omit the << endl from your print_address() implementation? I see the following lines have a newline at the start of their output so it should still display OK.