Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Add appropriate driver code to create a dynListType<int> object, a dynListType<s

ID: 3717640 • Letter: A

Question

Add appropriate driver code to create a dynListType<int> object, a dynListType<string> object, and a dynListType<clockType> object. Add some items into each list object and call some functions to make sure each list object works properly.

Your program may generate some output similar to the one shown below:

GIVEN CODE:

// dynListType_Driver.cpp
//

#include "dynListType.h"
#include <iostream>

int main()
{

<ADD CODE>

std::cout << "list one: " + ;
std::cout << "list two: " + ;
std::cout << "list three: " + ;

system("pause");
return 0;
}//end main

ist one: 1 ist two Tom Mary list three 05:30:50 16:00:00

Explanation / Answer

dynListType:: dynListType (const char* dbName) throw (SQLException) { connection = Connection::create( dbName, "dba", // username "goalie", // password 1, // number of properties "schema", "hello" ); // schema=hello property } /* * Closes the connection. */ dynListType::~ dynListType () { connection->close(); }