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.
This is a discussion on Loading Animation within the C++ Programming forums, part of the General Programming Boards category; I'm trying to creat on of the animations with the slashes as you may know. it looks something like this ...
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 thoughCode: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; } }. 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.
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![]()