DreamsCoder.com

We Code your Dreams


home > Spinning letters in using C - graphics




Spinning letters in using C - graphics







Watch demo





#include
#include

void main()
{
int j;
char str[40]="SPINNING LETTERS IN C - 
DREAMSCODER.COM";
clrscr();
textcolor(14);
gotoxy(25,6); //pointing to x,y

	for(j=0;j<39;j++)
	{
		gotoxy(25+j,6);
		cprintf("|"); delay(30);
		gotoxy(25+j,6);
		cprintf("/"); delay(30);
		gotoxy(25+j,6);
		cprintf("-"); delay(30);
		gotoxy(25+j,6);
		cprintf("\\"); delay(30);
		gotoxy(25+j,6);
		cprintf("|"); delay(30);
		gotoxy(25+j,6);
		cprintf("%c",str[j]);
		delay(50);
	}//for
getch();
}//void main

Label - c





by - Chinmay Mahajan





Are you looking for something else?


Suggested Programs




Pascal triangle program in C language


What is the difference between ARRAY and STACK?


Displaying Matrix in C


Pascal triangle program in C language