It's giving me an error telling me my reference variable hasn't been initialized. What does that mean, what's wrong with my code here?
/* ------ FUNCTION: NEW ENTRY ------------------------------------
----------------------------------------------------------------*/
void newEntry(char entries[], int index[])
{
char buffer[256];
char password[8];
bool val = 0;
int &length;
cout << "\n------ New Entry ------------------------\n";
cout << "Please enter your new password: ";
cin >> buffer;
val = valLength(buffer, password, length);
while(val == 0)
{
cout << "\nYour password must be between 8 and 15 characters in length\n";
cout << "Your password was " << length;
val = valLength(buffer, password, length);
cout << "\nPlease enter your new password: ";
cin >> buffer;
}
}