Okay, so I can save data from the program to the excel file. But now, I want it to appear on the console whatever is on the excel file.
This is the code that I used:
using namespace std;
string Groom, Bride, Venue, TimE, DatE;
cout<<"Please enter date of the reception (Use dash to separate): ";
cout<<"\nPlease enter time of the reception (Use colon and dash): ";
cout<<"\nPlease enter the name of the groom: ";
cout<<"\nPlease enter the name of the bride: ";
cout<<"\nPlease enter the number of guests: ";
cout<<"\nPlease enter the venue of the reception: ";
Please help me. I need to turn this in to my professor in a few hours and I'm still stuck. Thanks in advance whoever tried to help me. :)
1) Use the "code" tag to post code, its easier to read for forum members
2) Dont use "system" read here http://www.cplusplus.com/forum/beginner/1988/
3) Use indata >> DatE; indata >> TimE; //etc to read from the file.
4) You already know how to output that on console using cout