Posted by: nepali8 May 2, 2011
IT -- Solutions Center[Forum]
Login in to Rate this Post:     0       ?        
 Hey guys!!

i have got one error solved. i need to solve;

A function called by main that asks the user for the number of employees in the company. This value should be entered (and returned) as an int. It has no arguments.

which i did

void Employee();
 
AND  in main function, i simply call the function like this
nEmployees = Employee();

but it keep on say this error,
 
6 10\6 10\6.cpp(15) : error C2440: '=' : cannot convert from 'void' to 'int'

any suggestion?
 

Read Full Discussion Thread for this article