This is a program that I have already written. What I need to do is modify my switch statement so it calls the header files instead of stating what the user chose. So, when the user chooses 1, the program calls cashier.h. If the user chooses 2, the program calls invmenu.h. If the user chooses 3, the program calls reports.h. I already have my header files set up, I just don't know to how write the code to call the header files. Thanks!
#include <iostream>
#include "bookinfo.h"
#include "cashier.h"
#include "invmenu.h"
#include "reports.h"
using namespace std; //indicate use of input and output
int main() { //define main function
int decision = 0;
while (decision != 4) { //adding a while; it will repeat until it gets 4.
So I've learned. I need to call the function, but still don't know how to write the code for that.
My header files are:
cashier.h containing: int cashier();
invmenu.h containing: int invmenu();
reports.h containing: int reports();