Wedding Reception Data Storaging

Can someone please help me with this program? I wanted to put an fstream and create an Excel file. Then I can view all of the lists at those file. I'm really having a really hard time with these program. :) thanks in advance for those who will try to help me. :)

This is my code.

#include<iostream>
#include<windows.h>
#include <ctime>
#include<conio.h>
#include<string>
#include<fstream>

using namespace std;
#define on ,

void GREETING();
void MENU();
void AddWedding();
void ViewWedding();
void HelpMenu();
void OperateSystem();
void HelpAdding();
void HelpViewing();

void gotoXY(int x, int y)
{
HANDLE console = GetStdHandle(STD_OUTPUT_HANDLE);
COORD CursorPosition;
CursorPosition.X = x;
CursorPosition.Y = y;
SetConsoleCursorPosition(console,CursorPosition);
}

void gotoXY(int x, int y, string text)
{
HANDLE console = GetStdHandle(STD_OUTPUT_HANDLE);
COORD CursorPosition;
CursorPosition.X = x;
CursorPosition.Y = y;
SetConsoleCursorPosition(console,CursorPosition);
cout << text;
}

int main()
{
int c, s;
GREETING();
MENU();
switch(c)
{
case 'A':
{
AddWedding();
break;
}
case 'V':
{
ViewWedding();
break;
}
case 'H':
{
HelpMenu();
break;
}
default:
{
cout << "Please pick from the choices.";
break;
}
}
return 0;
}

void GREETING()
{
#define N1 1000000000
#define N2 100000000
gotoXY(35,9,"Welcome!");
gotoXY(26,11,"Fantasia Wedding Receptions");
gotoXY(37,12,"MENU");

}

void MENU()
{
char c;
gotoXY(35,13, "[A]dd new wedding event.");
gotoXY(35,14, "[V]iew all wedding events.");
gotoXY(35,15, "[H]elp Menu.");
cin>>c;
}

void HelpMenu()
{
int s;
cout<<"What do you need help with?";
cout<<"\n[A]bout the system.";
cout<<"\n[H]ow to operate.";
cin>>s;
switch(s)
{
case 'A':
{
cout<<"This system stores and lets you view the wedding events that you accepted."
<<"The name of the participants, the number of guests"
<<", the time and date of the wedding reception and the venue of the place.";
break;
}
case 'H':
{
OperateSystem();
break;
}
default:
{
cout << "Please pick from the choices.";
break;
}
}
}

void OperateSystem()
{
HelpAdding();
HelpViewing();
}

void AddWedding()
{
/* I wanted a function here that can create an Excel file that will list wedding events. But I don't know how and what function to use. */
}

void ViewWedding()
{
/*A function that views all wedding events that are recorded.*/
}

void HelpAdding()
{
cout<<"In adding a new wedding event, you will be asked to fill up the necessary information."
<<"The name of the groom, the name of the bride, the number of guests, the time of the event, "
<<"the date of the event and the venue of the event."
<<"\nThe information you gave will automatically save to the Excel file that can be found "
<<"at the folder 'Fantasia Wedding Reception lists'.";
}

void HelpView()
{
cout<<"In viewing all wedding events, the system will display all the events of wedding with the dates"
<<" and corresponding information about the specific wedding. Or you can open the Excel by choosing the option"
<<" to open Excel file.";
}
Topic archived. No new replies allowed.