Code:
while(TORD)
             {
                Torder Torders;
TORD is a constant is the while condition is always true.

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