The delay function can be used very creatively
this is one of them. In this post ill show u how to print a sentence with a delay after every letter!!
there is a slightly complicated code for doing that. Again just copy paste :-P
the code:
int i,j,k;
char str[] = {"insert your sentence here"};
int ben = strlen(str);
for(i=0;i<ben;i++)
{
putchar(str[i]);
delay(90);
}
Thats it. Copy this and paste it in turbo c++. If you don't know how to then refer to my previous post on " http://19miracles.blogspot.com /2013/05/how-to-copy-any-text-to-turbo-c_16.html">how to copy text to turbo c++."
Thank you
cheers!!!!
0 komentar:
Posting Komentar