Using += operator to insert data into a dynamic array...
hi...
I need to use a +=operator to insert data into a dynamic array.
Example:
Product fields:
Quote:
ID: 123BRD
Type: bread
Detail: healthy bread
Cost: 10
I have a class orders:
Code:
class orders
{
string idOrder;
string clienteName;
products *arrayProd;
unsigned int numProduts;
unsigned int quantity;
public:
...
I need to use a += operator to insert the products i want to order into the products *arrayProd;
I now how to do that without a += operator, but i have no idea how to use a operator for this kind of thing.
I thought that operators were only used for math calculations :-S