Hello to everyone!
I'm using 2 file .cpp to write in a file. The first file writes the login date and the second one writes the logout date using ctime.
Can you post the full error code and what line it occurs on?
C2064 means you're using an expression as a function when you shouldn't, and I can't tell from just what you've posted where the error is.
Do you have another member in class login, or admin that is named 'time'?
This would create a naming conflict, the compiler doesn't know if you mean 'time' the member variable, or 'time' the function.
try changing line 14 to time_t orario = std::time(0);
That way you specify the use of the time function in the std namespace.