Did you notice how your compiler complained that the end of Account was reached without a return value? Your Account prints things to cout all by itself, and doesn't return a string; hence that string that you fail to return can't be printed to cout by the main program. Either just call the function from main without the cout, or have Account return a string.



LinkBack URL
About LinkBacks





