Please help to find equation

I need to write a C++ function that involes 4parameters (x1,y1,x2,y2)axis.

how to write such function?
Thankyou!!!
1
2
3
ReturnType FunctionName(ArgType1 x1, ArgType2 y1, ArgType3 x2, ArgType4 y2) {
   //Your code goes here.
}

All types are probably double, but I have no way to know what you really need.
Last edited on
thankyou,
in the function it lets me to input (x1,y1) (x2,y2).from 1 point to the other it must be bigger than 1 coordinate.
okay.. Is that a problem? Any tutorial will tell you how to do console input/output.. Use a loop to validate your input.
can i show you a diagram to enhance what i am trying to say?
You could, but you don't have to. Instead of explaining what you need to do that, you should say, why you can't do it. Then I could help you with that.
thankyou so much,
i try harder if so i will ask for help again.

Please don't ask the same twice. And try before asking to at least clarify your question

http://www.cplusplus.com/forum/beginner/58357/
OK,i am sorry, i was confused where to post it
Topic archived. No new replies allowed.