السلام عليكم ورحمه آلله
عندي سؤآلين حليتهم بس مدري صح او لا لآن برنىمج فيجوال استديو مو راضي يتحمل
السؤآل الآول :
write a function that receive two strings as pointer to char. then,compares between them and return true if they are identical are identical,false if they are not ...
السؤآل الثآني :
write a function that receive a string as pointer to char . then, return it after removing all spaces
جل السؤآل الآول :
bool compares(string*s1,string*s2)
{
for(int i =0;i!='\0';i++)
{
if(*s1==*s2)
return true;
else
return false;
}
}حل السؤآل الثآني :
string remov(string*s1)
{
for(int i=0;i!='\0';i++)
{
*s1=' ';
}
return *s1;
}اتمنى مساعدتي :)