I was wondering, i'm making a console game, and want to write string letter by letter. instead of copy/pasting my letter-by-letter code all the time, can i make a function similar to java? E.g i write letterByLetter();
P.S Letter-by-letter code:
1 2 3 4 5
for (int i = 0; i < str.length(); i++)
{
cout << str[i];
Sleep(100);
}