#include "Error.h" int error(int errorCode) { int returnValue=0; switch(errorCode){ case -1: puts("Login not successful."); returnValue = -1; break; case -2: puts("Maximum number of attempts reached."); returnValue = -2; break; case -3: puts("No menu entry available for this number."); returnValue = -3; break; default: puts("Error code unknown."); } return returnValue; }