C:\Borland\BCC55\src>bcc32 golfh.cpp golfm.cpp golff.cpp
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
golfh.cpp:
golfm.cpp:
golff.cpp:
Error E2277 golff.cpp 25: Lvalue required in function setgolf(golf &,const char *,int)

I assume this means the types dont match in the line
g.fullname=name //????

Warning W8057 golff.cpp 27: Parameter 'name' is never used in function setgolf(g
olf &,const char *,int)
*** 1 errors in Compile ***
Code:
#include <iostream>
#include "golfh.cpp"
using namespace std;

int setgolf(golf & g)
{
	cout << "Enter golfers name:";
	cin.get(g.fullname,Len);
	if (cin)
	{
		return 0;
	}
	else
	{
		cout << "Enter player's handicap:";
		cin >> g.handicap;
		return 1;
	}

}


void setgolf(golf & g, const char *name, int hc)
{
	g.fullname=name;// error here ????
	g.handicap=hc;
}

void handicap(golf & g, int hc)
{
	g.handicap=hc;
}
void showgolf(const golf & g)
{
	cout << "Player's name:"<<g.fullname<<endl;
	cout << "Handicap:"<<g.handicap<<endl;
	cout << endl;
}