[求助]为什么会一直循环?
char temp[20],password[20];while(temp != password
{
cout << "\n Please input the password 'MAX 19 letter of alphabet': ";
cin.getline(password,20);
cout << "\n Confirm the password : ";
cin.getline(temp,20);
if(temp != password)
break;
}
RT拉,搞了半天没搞懂......