Hey
I have a somewhat interesting situation / question. Let's say I had a class that was meant for database manipulation with the following code:
And let's say I'm making a class of my own, in which I want to use an instance of SQL::database, just like I would in my main program.Code:#include <iostream> using namespace std; SQL::database testDB("test.db"); testDB << "SQL operation";
More specifically, I'm wondering if there's a way to create an instance of SQL::database as a private member of my own class, so that my classes functions can each reference to the instance.
Thanks for the help, hope I was clear in my point!
FlyingIsFun1217