Course Solutions Uncategorized (Solved) : Please Note Problem Multiple Files Works One Cpp File Soon Put Three Different Files Stop Q31337325 . . . .

(Solved) : Please Note Problem Multiple Files Works One Cpp File Soon Put Three Different Files Stop Q31337325 . . . .

 

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

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post