Monday, 8 April 2013

Marquee In C++ Or Marquee In OOPS Or Running Line In C++






#include<iostream.h>
#include<conio.h>
#include<stdio.h>
#include<graphics.h>
#include<dos.h>
void main()
{
int gd=DETECT,gm;
int i;
initgraph(&gd,&gm,"c:\\tc\\bgi");
settextstyle(1,0,2);
settextjustify(1,1);
for(i=0;i<getmaxx();i++)
{
setcolor(i);
outtextxy(getmaxx()-i,getmaxy()/20,"SUNIL KUMAR DHEENDHWAL");
sound(((i+5)%10)*1000);
delay(20);
setcolor(getbkcolor());
outtextxy(getmaxx()-i,getmaxy()/20,"SUNIL KUMAR DHEENDHWAL");
nosound();
}
getche();
}

No comments:

Post a Comment