hi
can anybody help i am having problems wiht this class and am not sure what the problem is i get a debug error 'missing ; before identifier description'
can any body help
#ifndef SALESTRAN_H
#define SALESTRAN_H
class SalesTran
{
private:
string description;
double price;
int units;
public:
SalesTran() {}
SalesTran(const string& d, const double p, const int u)
{
description = d;
price = p;
units = u;
}
};
#endif
cheers
Nick
can anybody help i am having problems wiht this class and am not sure what the problem is i get a debug error 'missing ; before identifier description'
can any body help
#ifndef SALESTRAN_H
#define SALESTRAN_H
class SalesTran
{
private:
string description;
double price;
int units;
public:
SalesTran() {}
SalesTran(const string& d, const double p, const int u)
{
description = d;
price = p;
units = u;
}
};
#endif
cheers
Nick