Okay, I've tried writing something, but now I have lots and lots of wonderful errors.
global.h
Code:
#include <iostream>
#include <cmath>
#include <vector>
#include <ctime>
using namespace std;
int validateMenuInput(int length);
float getSalary(int hours, float pay);
void addNewEntry(std::vector<database>& employee); //Errors are here
float generateIdNumber();
In here, it says on the line with void addNewEntry() that:
"'database' was not declared in this scope"
"template 1 argument is invalid"
"template 2 argument is invalid"
"ISO C++ forbids declaration of 'employee' with no type"
Looks like it doesn't realize I declare database as a structure later.. How do I make sure the function declaration knows what database is?