Tuesday, 27 March 2012

Code for Program of reflection in x axis in C++ Programming

Welcome to Technology    <div dir="ltr" style="text-align: left;" trbidi="on">
<marquee behaviour="slide" bgcolo="#111111">Welcome to Technology</marquee>



/*Reflection in x Axis*/

# include
# include <conio.h>
# include cs.h&gt;
# include

char IncFlag;
int PolygonPoints[3][2] =
    {{10,100},{110,100},{110,200}};

void PolyLine()
{
    int iCnt;
    cleardevice();
    line(0,240,640,240);
    line(320,0,320,480);
    for (iCnt=0; iCnt&lt;3; iCnt++)
    {
        line(PolygonPoints[iCnt][0],PolygonPoints[iCnt][1],
          PolygonPoints[(iCnt+1)%3][0],PolygonPoints[(iCnt+1)%3][1]);
    }
}
void Reflect()
{
    float Angle;
    int iCnt;
    int Tx,Ty;
    cout</conio.h></div>

No comments:

Post a Comment