HI THERE, the code of the "removespac es" function is 100% CORRECT but it doesn't return the write answer, maybe there is a mistake in the main function:
#include<stdio. h>
void RemoveSpaces(ch ar *s);
int main(){
char s[24];
printf("\n enter the double word :");
scanf("%s ",s);
RemoveSpaces(s) ;
printf(" \n %s",s);
}
...
User Profile
Collapse
-
How To Return Te Result Of This Function
-
function algorithm
it is correct the algorithm of the function
int stringTokenizer (char* s1, char* s2);
{
char *p1 = (char *) s2;
int ret=1;
for(;*p1 && (ret=strnncmp(s 1,p1)); p1++) ;
return ret;
} -
first i want to tell that i wrote as you the problem without trying and i wait for the answer but anyone send me a reply, for that i learn to search the algorithm from the internet , so what i wrote below is just what i found in my search; if it is not enough you could search further, good luck ;-)
// Run through each single digit to create a new string. Even digits
// are multiplied by two, odd digits are left alone.... -
Your Help Banfa
This is my first project, it is about arrays,librarie s and really i don't understand how to build a library; i found this project so hard that i don't know how to begin;
can you just give any flash by how can i start my project .
Specifications:
In this project you will implement a set of functions in a set of libraries.You will implement four libraries: “myString.h”, “myMath.h”, “myCType.h” and “myLib4.h”.... -
hi there, ARRAYS && POINTERS
this is my programm, there is a mistake because it doesn't give the right answer; the quetion is below the program:
#include<stdio. h>
#define maxsize 100
void fillarray(doubl e*, int);
void getminmax(doubl e*, double*, double*, int);
int main() {
double WinNum, WinP, grades[maxsize];
int size,num,i;
printf("\n how many players are there:");
scanf("%d", &size);... -
thanks in advance:
this is my programme, i try it but there is a mistake, can you help to find it :the request is above
#include<stdio. h>
#include<math.h >
#define SENTINEL 'Q'
int menu();
int distance(int);
void prompt();
int main() {
char choice;
int x1,x2,y1,y2,d,m ;
do {
choice = menu();
switch(choice) {
case '1':
printf("\n... -
need your help, i'm waiting
I'm supposed to :
1. Write a function “distance” that takes four arguments corresponding to the Cartesian Coordinates of two points (x1, y1) and (x2, y2), and returns the distance between the two points.
- Call your function from a main program (write a complete program)
- Your program should execute iteratively till a Sentinel value is types
2. Write a function LCD (Least common divisor) that takes as... -
hi there, ca you help me please
I am supposed to write a program to take a depth (in kilometers) inside the earth as input data; compute and display the temperature at this depth in degree Celsius and degree Fahrenheit. The relevant formula are
- Celcius = 10 (depth) + 20 (Celsius temperature at depth in Km)
- Fahrenheit = 1.8 (Celsius) + 32
Include two functions in your programs. Function CelsiusAtDepth should compute and return the Celsius temperature at... -
functions
i am supposed to write a program :
A manufacturer wishes to determine the cost of producing an open-top cylinder container. The surface area of the container is the sum of the area of the circular base plus the area of the outside (the circumference of the base time the height of the container).
Write a function that computes (returns) the cost of building a container given a certain cost value (cost in dirhams per centimeter²)... -
can you answer please as soon as possible
i' am supposed to write a function that takes as an argument two integers n and b, and returns a value corresponding to the following formula:
(en * ln b)² + cos(n) / sin(b)
- Treat the exception when sin(b) = 0 by making the function returning a value of (-99999).
- Call your function from a main program (write a complete program)
- In the main menu do check if the returned value is (-999). If... -
can you answer please as soon as possible
i' am supposed to write a function that takes as an argument two integers n and b, and returns a value corresponding to the following formula:
(en * ln b)² + cos(n) / sin(b)
- Treat the exception when sin(b) = 0 by making the function returning a value of (-99999).
- Call your function from a main program (write a complete program)
- In the main menu do check if the returned value is (-999). If so... -
No activity results to display
Show More
Leave a comment: