Sunday, March 17, 2013

Delay Printing

#include<iostream.h>
#include<windows.h>
using namespace std;
int main()
{
    char a[]="Suraj Kumar Jana";
    for(int i=0;a[i]!='\0';++i)
    {
        system("color ce");
        Sleep(250);
        cout<<a[i];
    }
    return 0;
}

0 comments:

Post a Comment