hi...
I need to use a +=operator to insert data into a dynamic array.
Example:
Product fields:
I have a class orders:ID: 123BRD
Type: bread
Detail: healthy bread
Cost: 10
I need to use a += operator to insert the products i want to order into the products *arrayProd;Code:class orders { string idOrder; string clienteName; products *arrayProd; unsigned int numProduts; unsigned int quantity; public: ...
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