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
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(); }