سلام
لوسمحتواا
هاي البرنامج ايش المخرجات
وايش يسوي
يعنيWhat does this program do??
#include <iostream>
#include <cstdlib>
bool mystery3( const char *, const char * );
int main()
{
char string1[ 80 ], string2[ 80 ];
cout << "Enter two strings: ";
cin >> string1 >> string2;
cout << "The result is "
<< mystery3( string1, string2 ) << endl;
system("PAUSE");
return 0;
}
bool mystery3( const char *s1, const char *s2 )
{
for ( ; *s1 != '\0' && *s2 != '\0'; s1++, s2++ ){
if ( *s1 != *s2 )
return false;
}
return true;
}
ولوسمحتواا
ايش الخطا في ها البرنامج//
1::
char *s;
cout<<s<<endl;
2::
char s[]="this character array";
for(;*s!='\0\';s++)
cout<<*s<<' ';

