please note i have problem with multiple files . it works ifthey are in one cpp file but as soon as put them into threedifferent files , it stops working . please help
———————————————
header file
#include <iostream>
#include <iomanip>
using namespace std;
class Date
{
private:
int month, day, year;
public:
Date()
{
month=1;
day=1;
year=2000;
}
Date(int d, int m, int y)
{
day = d;
month = m;
year= y;
}
};
——————————————————————
function.cpp
#include <iostream>
#include “date.h”
#include <iomanip>
using namespace std;
bool setDate(int d, int m, int y)
{
if (d > 30)
{
cout << “Wrong date” << endl;
return false;
}
else
{
day = d;
if (m > 12)
{
cout << “Wrong month” << endl;
return false;
}
else
{
month = m;
year = y;
return true;
}
}
}
void getDate(int& d, int& m, int& y)
{
d = day;
m = month;
y = year;
}
void
PayPal Gateway not configured
PayPal Gateway not configured