This compiled 2nd try:
Code:
//main.cpp
#include <iostream>
#include "monster.h"
using namespace std;
int main()
{
Orc();
return 0;
}
Code:
//monster.h
#ifndef __MONSTER_H__
#define __MONSTER_H__
int Orc();
#endif //__MONSTER_H__
Code:
//monster.cpp
#include "statcheck.h"
int Orc()
{
int intelligence = 100;
GetStat(intelligence);
return 10;
}
Code:
//statcheck.h
#ifndef __STATCHECK_H__
#define __STATCHECK_H__
int GetStat(int);
#endif //__STATCHECK_H__
Code:
//statcheck.cpp
#include "statcheck.h"
int GetStat(int intel)
{
return 100;
}