Friday, 6 October 2017

How to make Loading screen with 3 dots in c++

// run it in dev c++ or codeblock //
#include<iostream>
#include<conio.h>
#include<windows.h>
using namespace std;
int main()
{

for(int i=0;i<2;i++)
{
cout<<"Loading";
for(int j=0;j<4;j++)
{
Sleep(500);             
cout<<".";
}
system("cls");               
}

}