I m a neophyte and this is my nonworking code:
[void deleteS(char *str)
{
char* source= str;
while(*source!= 0)
{
*source=*str;
if (str!="S" ||str!="s")
{
source++;
str++;
}
else if (str=="S"|| str== "s")
{
str++;
...
User Profile
Collapse
-
-
delete an alphabet
#
Write a function named deleteS that accepts one character pointer as a parameter and returns no value. The parameter is a C string. This function must remove all of the upper and lower case 's' letters from the string. The resulting string must be a valid C string.
Your function must declare no more than one local variable in addition to the parameter; that additional variable must be of a pointer type. Your function... -
help on mingle function
How would i make the following function???? confused
int mingle(const string a1[], int n1, const string a2[], int n2,
string result[], int max);
If a1 has n1 elements in nondecreasing order, and a2 has n2 elements in nondecreasing order, place in result all the elements of a1 and a2, arranged in nondecreasing order, and return the number of elements so placed. Return -1 if the result would have...
No activity results to display
Show More
Leave a comment: