TORD is a constant is the while condition is always true.Code:while(TORD) { Torder Torders;
Torder is a struct within the struct transactions - so use
Code:transactions::Torder Torders;member variables price and quantity are not defined as arrays so cannot be accessed via a subscript.Code:total = Torders.price[i] * Torders.quantity[i];




Reply With Quote
