I'm learn c++ alone and need help to write programs
plz help me :cry:
A.Write is the greatest number?
You have to stor. In an array, twenty integer number given by the user. One these numbers are stored in this array, you have to find the greatest number and print it.
Note:
To manipulate the array in this exercise you should use only pointers.
------------------------------------------------------------------------------
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.