ما الخطا في هذا الكود
علما باني اضع الاسم نفسه وكلمة المرور ولكن عند التشغيل
لا يخرج لي غير that is rong
#include < iostream >
#include < string >
using namespace std ;
int main ( )
{
int r;
char name[80], pass[80] ;
cout << " please Enter the name and pass ";
cin >> name >> pass ;
if ( name =="raed"&&pass=="raed")
{ cout<<"\nname and pass are the same:";
r = strcmp(name,pass);
cout<<"\nreturn_value = "<<r<<endl;
}
else
cout << " that is rong " ;
return 0 ;
}