Extend the structure definition in cpp file touse a structure rather than just a string.Update the program to use this new structure and move allthe structure definitions to a separate .h file
Create a .h file with the current structuredefinitions. Include that file in thecpp file and make sure that the program stillcompiles/runs.
#include<iostream>
#include<bits/stdc++.h>
using namespace std;
struct date
{
int month;
int day;
int year;
};
enum state {COMPLETED = 1, WORKING = 0};
struct project_Detailes
{
string projectName, description;
struct date startDate, endDate;
int expectedTime , timeExpended;
int pState;
};
void add()
{
ofstream outfile;
outfile.open(“F:project.txt”, ios::app);
struct project_Detailes p;
cout<<“Enter all the detailes”<<endl;
cout<<“Enter project name : “;
cin.ignore();
getline (std::cin,p.projectName);
cout<<“nEnter Description : “;
getline (std::cin,p.description);
cout<<“nEnter startDate — “;
cout<<“n Enter month : “;
cin>>(p.startDate).month;
cout<<“n Enter day
PayPal Gateway not configured
PayPal Gateway not configured