I tried it MadCow257 and it worked for me.
I used BloodShed Dev compiler to make a program in which the text runs from the left to right of the screen in 1 second intervals
Ex:
"Hello World"
"Hello World"
"Hello World"
"Hello World"
"Hello World"
"Hello World"
"Hello World"
"Hello World"
.......
The code i mentioned b4 printed to the screen, the i used gotoxy() and clrscr() to make it so that the text is "moving" Every second it refreshed for me.
Here is the code:
Code:
/*
Name: Scroller
Copyright: 2005
Author: Sridar Ravi
Date: 05/04/05 18:31
Description: A scrolling text program
*/
#include <iostream>
#include<conio.h>
using namespace std;
//*****************************************************************************
void Scroll(string &msg)
{
string scrolled,temp,temp2;
temp=msg.substr(1,(msg.length()));
temp2=msg.substr(0,1);
msg=temp+temp2;
if(msg.length()+1==' ')
{
cout<<temp+' '+temp2;
}
else
{
cout<<msg;
}
}
//*****************************************************************************
int main()
{
string msg;
cout<<"Enter the message that you wish to display as scroller: ";
getline(cin,msg);
msg=msg+". ";
int x=0;
while(x<100000)
{
Scroll(msg);
for(long y=0; y<30000000; y++);
system("cls");
x++;
}
cin.get();
return 0;
}