123456789101112131415161718192021222324252627282930313233343536373839
#include<iostream> #include<iomanip> using namespace std; bool password(char*); void main() { const int MAX_SIZE = 100; char string(MAX_SIZE); cout << "Please enter a password. " << endl; cin.getline(string, MAX_SIZE);//this states it can't convert a char to char* if (password(string))//this states it can't convert a char to char* also { cout << "This is a good password. " << endl; } else { cout << "Please try again! " << endl; } } boolpassword(char *string); bool uppercase = false, lowercase = false, digit = false; { int count = strlen(string);//illegal use of an expression while (*string != NULL()); //just says "while" { if (isupper (*string[i])) uppercase = true; else if (islower (*string[i])) lowercase = true; else if (isdigit (*string[i])) digit = true; string ++; } return count>= 6 && uppercase && lowercase && digit; )//missing a brace