Discuss the following:
Q: Create a C++ program that will take in a date in the format YYYYMMDD and output it as MM/DD/YYYY, where YYYY stands for year, MM stands for month, and DD stands for day.
Program will accept an 8-digit positive value integer as input. Any other integer value will produce an error message.