12345678910111213141516
#include <cstring> #include <iostream> #include <windows.h> const char *typed_text = "Hello World!"; int main() { for(int idx = 0; idx < strlen(typed_text); ++idx) { std::cout << typed_text[idx]; Sleep(500); // half-second between "typing" letters } std::cout << std::endl; return 0; }