Okay, so I have a different problem this time. Now I'm trying to call essentially a random variable from a function in a header in order to determine the value of a variable in the main program. Looks like this
Main program:
#include <iostream>
#include <ctime>
#include "randmon.h"
int main()
{
usingnamespace std;
int monster=monster_determine();
switch (monster)
{
case 1:
cout << "You must fight a boar!" << endl;
break;
case 2:
cout << "You must fight an Ogre!" << endl;
break;
case 3:
cout << "You must fight a tiger!"<<endl;
break;
}
cout << "Your use of header file seemed to work." << endl;
system ("pause");
return 0;
}