Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what does this error mean?

Status
Not open for further replies.

tru178

Technical User
Dec 8, 2001
6
US
error C2819: type 'employee' does not have an overloaded member 'operator ->'

employee is a structure defined in employee.h.
i get this error when trying to populate that stucture by reading it from a data file in file "readit.cpp". readit() receives a pointer to that structure.

the error is located at
in.c->name;
 
What #include declarations do you have at the top of your file(s)?

You often want to include some of these (depending on your program):

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
 
Can you post the employee structure and the readit funciton?

Matt
 
What is the variable &quot;in?&quot; c would have to be of type employee and would also have to be a member of &quot;in&quot; for this statement to be symanticly correct. The actual structure and function code would be good. Don't forget the
Code:
 tags. MYenigmaSELF
myenigmaself@yahoo.com
[URL unfurl="true"]http://myenigmaself.gaiden.com[/URL]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top