Some very minor changes to what you have should do the trick.
Code:
#include <iostream>
#include <ctime>
#include <string>
int main() {
int x, size;
std::string sentc = "This will scroll from left to right using clock as speed.";
double start, end;
size = sentc.size();
for(x=0;x<size;x++) {
start = double(clock())/1000;
end = double(clock())/1000;
while (end - start < .2)
end = double(clock())/1000;
std::cout << sentc[x];
}
return 0;
}
I used <ctime> to do the pausing, because it's simply more standard than sleep().
EDIT: Oh, of course, to edit the speed the text scrolls, then just change that arbitrary floating point number in the while loop.