S
solartimba
Basic question: I am using STL for the first time, and I want to put
the following class into a vector. What member functions/overloaded
operators do I have to include? In general, when using STL, how do I
answer this question?
//******************
class cStockPrice
{
private:
string date;
float price;
public:
cStockPrice() : date("NA"), close(0)
{ }
void getPrice(string tmpDate, float clse)
{ date=tmpDate;
close=clse;
}
}; //end of cStockPrice
the following class into a vector. What member functions/overloaded
operators do I have to include? In general, when using STL, how do I
answer this question?
//******************
class cStockPrice
{
private:
string date;
float price;
public:
cStockPrice() : date("NA"), close(0)
{ }
void getPrice(string tmpDate, float clse)
{ date=tmpDate;
close=clse;
}
}; //end of cStockPrice