السلام عليكم ورحمة الله وبركاته
اولا احب ان اهنى الجميع بشهر رمضان المبارك ...أعاده علينا وعليكم بالخير واليمن والبركات . .
وبصراحة تامة . .
لفت انتباهى هذا المنتدى الأكثر من رائع ... والفضل يعود لكل القائمين على هذا المنتدى
اخوانى الصراحه انا لدى سؤال فى لغة السي بلس ...ولا اعرف كيف احله
اتمنى مساعدتكم لى فى حله .... وجزاكم الله خيرا
السؤال وهو :
B. Copy a string in an array using Pointers.
The user give you two strings (assume maximum for each string is 50 characters) ,you have to copy the shortest string in an array. Once this string is hold in an array, you must print it using pointers.
Hint:
The function strcmp can help you to resolve this exercise. This functions is included in the library cstring.
Function: int strcmp ( const char *s1, const char *s2 );
Description:
Compares the string s1 with the string s2. The function returns a value of zero, less than zero or greater than zero if s1 is equal to , less than or greater than s2, respectively.
انتظر ردودكم الكريمه
وشكرا
