Hey, so I am trying to create a program that will prompt the user to enter a 5 digit zip code or a 25 character bar code. The program should be able to read both inputs and provide the user with the zip code if they entered a bar code and vice versa.
My program is not compiling and I am not sure why I have read through it countless times. Any help would be much appreciated.
My program is not compiling and I am not sure why I have read through it countless times. Any help would be much appreciated.
These error messages should give you a big clue as to where to look and what is wrong:
76:8: error: prototype for 'std::string PostalService::getBarCode()' does not match any in class 'PostalService'
15:6: error: candidate is: int PostalService::getBarCode()
Frankly how to fix them. I am still a noob, this is my third program ever I am reading out of the book to understand how to set these up, but there isn't much help in troubleshooting.
I will work on those see if I can come up with it. Thank you for giving me a spot to look.
Remember that your prototype on line 15 must exactly match the function implementation that starts on line 76, and the function call must use the same type and number of parameters.
thank you for humoring my post and helping me. changed int to string and had to fix a couple other minor typing errors and guess what? It compiled and worked flawlessly.