Simply, I have two strings. No matter what you type in, the strcmp returns 1. Here's the code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
int accountnumber[11];
cout<<"Your account number is: ";
for(int i=0; i<10; i++)
{
accountnumber[i+1] = rand() % 9;
cout<<accountnumber[i+1];
}
cout<<endl;
cout<<"Please enter the account number.";
cin>>accountguess;
int test = strcmp(accountnumber, accountguess);
cout<<test<<endl;