Dev-C++ 如何等待0.01秒

Dev-C++ 如何等待0.01秒?
尝试过很多次,一直报错
大家有什么办法?
希望使用sleep函数,解答了发个代码雨程序哈!
顺便让大家看看有什么语法错误哈!
代码:


```c++
#include <bits/stdc++.h>
using namespace std;

char a[19]={'1','2','3','4','5','6','7','8','9','0',' ','@','!','#','%','^','*'};

int main()
{
    int t;srand(10); 
    for(int i=1;i<=t;i++)
    {
        for(int j=i;j<=20;j++)
        {
            int c=rand()%19;
            cout<<a[c];
            double tim=1;
            while(tim==0)
            {
                tim-=0.001;
            }
        }
        cout<<endl;        
    }
    return 0;
}


引入头文件<windows.h>,就能使用函数 Sleep(); 时间单位毫秒。0.01秒就用Sleep(10);

#include <iostream>
#include <windows.h>
using namespace std;

int main ()
{
    Sleep(10);
    cout << "bye!" <<endl;
         
    return 0;
}

Sleep(10);
万能头无需再引用头文件