What is a driver program?

In my c++ class I hve to make a driver program for my last project? BankingSystem* myBankingSystem= new BankingSystem().

I had the meat of the program done and then I realized I needed this.
In this context, it sounds like a program to actually run and exercise the functions and classes you have written.
Wouldn't that be the main function?
I expect so.
So would I right the driver program the same way as i would int main()?
yeah, just call whatever functions you need to, make the objects you need, etc.
Having a separate driver program does imply that the class code will be separately compiled and linked against, with only the header file for the class being #include d.
This is a problem that came from another thread, which we temporarily had a problem posting to.

Lauren,

The answer is that you don't have to change anything in your project in that respect. You have Main.cpp already which has main() in it, this is the driver part. The use of the word "driver" was perhaps unfortunate choice of words from you teacher.

Your Main.cpp is going to "drive" (in other words, use) your Account and BankingSystem classes.

I replied to your PM, hope it all made sense.

Note to others: We are using PM's because there are 2 people on the forum doing the same programming course. Lauren can PM others if she wants to.
Topic archived. No new replies allowed.