int main() {
int i;
char words[] = "Hello this is text.\n";
for(i = 0; i < strlen(words); i++) {
sleep(1);
putchar(words[i]);
}
}
I've been attempting to have the program output the text slowly, character by character into the console (to look like someone is typing it). However instead when I run this code I get one massive pause, and then it prints the whole string at once. How do I get this to work.
(also no C++ solutions please)