Dec 28, 2011 at 9:34am UTC
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 UTC
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 UTC
Dec 28, 2011 at 10:14am UTC
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 UTC
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 UTC
can i show you a diagram to enhance what i am trying to say?
Dec 28, 2011 at 11:58am UTC
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 UTC
thankyou so much,
i try harder if so i will ask for help again.
Dec 28, 2011 at 9:24pm UTC
OK,i am sorry, i was confused where to post it