I'm trying to creat on of the animations with the slashes as you may know.
it looks something like this \ | / --. It almost looks something like a star * . If anyone can help me that would be great thanx.
I'm trying to creat on of the animations with the slashes as you may know.
it looks something like this \ | / --. It almost looks something like a star * . If anyone can help me that would be great thanx.
You may want to slow it down a bit though . Notice the printf("\\"); where you have to use two \, not one. One \ is used to give special commands to strings like new line ( \n ), tab ( \t ) and so on.Code:int Counter=0; while(!kbhit()) { gotoxy(1,1); switch(Counter) { case 0: printf("|"); Counter++; break; case 1: printf("/"); Counter++; break; case 2: printf("-"); Counter++; break; case 3: printf("\\"); Counter++; break; default: Counter=0; } }
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
Thanks!
That worked perfectly