Please help to find equation

Dec 28, 2011 at 9:34am
I need to write a C++ function that involes 4parameters (x1,y1,x2,y2)axis.

how to write such function?
Thankyou!!!
Dec 28, 2011 at 10:06am
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 Dec 28, 2011 at 10:07am
Dec 28, 2011 at 10:14am
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.
Dec 28, 2011 at 10:33am
okay.. Is that a problem? Any tutorial will tell you how to do console input/output.. Use a loop to validate your input.
Dec 28, 2011 at 10:40am
can i show you a diagram to enhance what i am trying to say?
Dec 28, 2011 at 11:58am
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.
Dec 28, 2011 at 12:08pm
thankyou so much,
i try harder if so i will ask for help again.

Dec 28, 2011 at 4:21pm
Please don't ask the same twice. And try before asking to at least clarify your question

http://www.cplusplus.com/forum/beginner/58357/
Dec 28, 2011 at 9:24pm
OK,i am sorry, i was confused where to post it
Topic archived. No new replies allowed.