My program is working perfectly but when I want to initialize the default constructor which is all zero's
it prints -9.25596e+061 .
Hier is the code :
class Sales
{
private:
static const int QUARTERS = 4;
public:
double sales[QUARTERS];
double average;
double max;
double min;
Sales();
Sales( double ar[]);
void setSales(Sales & s, const double ar[]);
void setSales(Sales & s);
void showSales(const Sales & s);
};
Sales::Sales()
{
double sales[]=
{
0.0,0.0,0.0,0.0
};
}
What's the problem?
Thank you in advance!
Thank you in advance!