Hi, I have a question on keeping track of nodes and the sums in each
OrderItem * first;
OrderItem * next;
My Class Order is basically my header file per se. My invoice header. It has info of each ItemOrder Node.
How do I keep track of the count of nodes for each Order?
Do I add
int OrderNodeCount; //in Class Order
how can I count the OrderItem nodes that are connected to this first?
And then if I mulitpy quantity*unitprice=sum // of OrderItem but I need to sum all of thesefor Class Order to have total Sum
I tried Static but not right.
Can someone point me in the right direction