Can't get data out of my Trucks


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]

Posted by Chris on November 29, 2001 at 18:04:18:

Just as a test i made a truck with default data..but when i try to get it back i returns nothing..here is the calls i made:

Trucks[0] = new Hauler(Name, Address, Direction);
cout << Trucks[0]->getName() << endl;

getName is a temp function i made in the base class just to test...but when i do this...it cout's nothing. I am sure Name, Address, and Direction are set right..and in the base class they are setting the data members correctly...i just can't seem to get them back. Whats wrong here?


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]