Subj : Re: How to write running Letters on the screen To : borland.public.cpp.borlandcpp From : waking@idirect.com (Wayne A. King) Date : Thu Jul 10 2003 07:25 am On Wed, 9 Jul 2003 16:51:16 -0500, "Connie" wrote: >I like to know how I can write a continues a running letter on the dialog. >It will be like letters display one by one and go back to beginning. You need to be more specific. Do you mean a single letter? Or do you mean a phrase or sentence? Like a marquis or banner? Can you give an example? Also, what kind of program is this? DOS? Win16? EasyWin? Win32? Console? GUI? Which compiler & version? When you say "on the dialog", what specifically are you referring to? A simple DOS example may be something like this: #include #include #include int main() { char temp, banner[] = ".........Hello, World!........"; int i; printf("\n"); for(i=0; i<60; ++i) { printf("%s\r", banner); delay(250); temp = banner[0]; memmove(banner, banner+1, sizeof banner - 2); banner[strlen(banner)-1] = temp; } return 0; } -- Wayne A. King (ba994@torfree.net, wayne.king@ablelink.org, waking@idirect.com, Wayne_A_King@compuserve.com) .