I need some code that checks the number of characters entered and if it is not seven it needs to display "Error not enough numbers"
i already tried (strlen(pin_code) == 7); but it says invalid conversion from int to const char...
It needs to not conflict with the checking of the pin number either...
int pin_num =1234567;
do{
cout << "Please enter your unique 7 digit pin code: ";
cin >> pin_code;
system("cls");
}
while(pin_code != pin_num);
cout << "Code Accepted";
Sleep(1000);
system("cls");
}
Thanks,
Adam