The screen clean very fast cant see it move...
how can make it looks btr?

int i,j,k,a;
	char logo[9][59];
					
	for(a=0;a<59;a++)
	{	logo[0][a]=262;
		logo[8][a]=262;}
	for(a=0;a<59;a++)
	{	logo[1][a]=' ';
		logo[7][a]=' ';}
	strcpy(logo[2]," @@@@@   @   @@@@   @@@@      @@@@  @@@@ @@@@@ @@@@@ @   @ ");
	strcpy(logo[3],"   @    @ @  @   @ @         @     @     @     @     @@  @ ");
	strcpy(logo[4],"   @   @   @ @@@@  @          @@@  @     @@@@  @@@@  @ @ @ ");
	strcpy(logo[5],"   @   @@@@@ @   @ @             @ @     @     @     @  @@ ");
	strcpy(logo[6],"   @   @   @ @   @  @@@@     @@@@   @@@@ @@@@@ @@@@@ @   @ ");

	for(i=0;i<60;i++)//loop for move
	{	system("cls");
		for(k=0;k<9;k++)//loop for print whole logo
		{	for(j=0;j<67-i;j++)//loop for space
				cprintf(" ");
			cprintf("%c",262);
			for(j=0;j<i;j++)
				cprintf("%c",logo[k][j]);
			cprintf("%c\n",262);}}

Recommended Answers

All 4 Replies

2nd QUESTION

i call a function n read data , then how to get the input from that function to main function???

Don't kill me, but wouldn't you be able to slow down the process using like:
Sleep(a);

where "a" is the number of miliseconds to sleep, the function is declared in; "<windows.h>"

And about your second question, then how about using a return?

thanks a lot!!!
i kno can use return...
but jz i 4get how to coding =P
can give me a example???
thank you thank you!!!

thanks a lot!!!
i kno can use return...
but jz i 4get how to coding =P
can give me a example???
thank you thank you!!!

About the sleep, simply add the "Sleep(100);" just inside your loop?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.