I'm getting a problem on my final output it should only be "Loading..."
but my compiler shows. "Loading...1111111111222222222233333333333444444444555555555566666666667777777777888888888899999999999"
You are outputting the number on line 12 and 17, if you don't want them to appear, delete those lines.
It appears as one line because you're not printing any linebreaks, so everything is put one after the other.
Declare a clearscreen function (there is a lot of talk discussing this one around here), then
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
void LoadScreen(int length)
{
for(int i=0; i<length, i++)
{
cout<<"Loading.";
sleep(200);
ClearScreen();//yours may have a different name
cout<<"Loading..";
sleep(200);
ClearScreen();//yours may have a different name
cout<<"Loading...";
sleep(200);
ClearScreen();
}
}