cout << "Text";
char str[] = "Hello world!"; int i = 0; while (str [i] != '\0') { cout << str[i++] << ' '; cout.flush(); usleep (100000); cout << ' '; }
#include <unistd.h> #include <iostream> #include <string> using namespace std; int main () { char str[] = "Hello world!"; int i = 0; while (str [i] != '\0') { cout << str[i++] << ' '; cout.flush(); usleep (100000); cout << ' '; } return 0; }
int main () { char str[] = "Hello world!"; int i = 0; while (str [i] != '\0') { cout << str[i++] << ' '; cout.flush(); usleep (100000); cout << ' '; } str [] = "Hello world2!"; return 0; }
char str[] = "Hello world!"; ... str[] = "Hello world2!"; // so this will not fit in actual array, 1 chat too long.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)