Featured Post

Step Wise Project Planning

Planning is the most difficult process in project management. The framework described is called the Stepwise method to help to distinguis...

  1. Home

Write a program to move a character above a line

#include <graphics.h>
Void main()
     {
        Int gd=DETECT , gm , midy,I;
        Initgraph(&gd,&gm,” “ );
           Midy=getmaxy()/2;
           For(i=0;i<=getmaxx()-50;i++)
                   {
                        Cleardevice();
         Line(0,midy,getmaxx(),midy);
            Settextstyle(TRIPLEX_FONT,HORIZ_DIR,8);
Outtextxy(I,midy-80,”M”);
     Delay(100);
        }
           Getch();
        }


Previous
Next Post »