Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
typedef dbstl::db_map<const char *, Car> owner_car_map_t; // (1)
owner_car_map_t ocmap;
while (has more owner-car pairs to input) {
// Accept input data for owner name and car, create car.
Engine *pEngine = new Engine(hp, ncyl, displ);
Car car(len, width, height, pEngine);
ocmap[owner.c_str()] = car; // (2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.