Here is a snippet of the used typedef in question:
typedef vector <twoDay *> TD; TD two; typedef vector <overnight *> ON; ON over; /* Some more code */ /* Create a new object pointer of the twoDay class and push it into the two vector */ twoDay *tdPtr = new twoDay(sFirstName, sLastName, rFirstName, rLastName, sAddress, rAddress, sCity, rCity, sState, rState, sZip, rZip, weightInOunces, costPerOunce, flatFee); two.push_back(tdPtr); /* Creat a new object pointer of the overnight class and push it into the over vector */ overnight *onPtr = new overnight(sFirstName, sLastName, rFirstName, rLastName, sAddress, rAddress, sCity, rCity, sState, rState, sZip, rZip, weightInOunces, costPerOunce, overnightFee); over.push_back(onPtr);
This post has been edited by IngeniousHax: 19 March 2012 - 08:14 PM

New Topic/Question
Reply



MultiQuote



|