So basically part of a program asks me to do this:
"A function called by main that accepts two arguments: The name of the file stream object as a reference parameter to the file stream, and the number of employees in the company. The function should as integers for the employee: The employee ID # and and the number of days the employees missed during the past year. Each employee number should be written to the file report in the function. "
My guess is that the function looks like this: int Name ( string fileName, int employeesNumber)
The thing is that I already did a function for the number of employees (without parameters) now it's asking me to do it again? Also I don't know how to write to a file report while using it as part of an argument.
Yeah, it does want a couple returns and I'm using an outstream too. It also asks for the total of missed days to be returned as an int, so wouldn't it be more like:
int mytype foo(ifstream &ifs, int numemployees);(btw is this the part that goes in the defining part at the end)
(and this part calls to the main?)
struct mytype
{
int idnum;
int days missed;
... other stuff?
};