C++ slowprint
SilentShadowBla (500)

For people who are doing c++ and want a slowprint function, this took me a LONG time to figure out probs cuz im dumb...:)

You are viewing a single comment. View All
Mapaor4 (3)

Can u explain me the:

for(char c: word)

Never seen it

SilentShadowBla (500)

that basically saying as long as there are still characters in the string it will repeat the action @Mapaor4

Mapaor4 (3)

@SilentShadowBla Would this had been correct?:

for(int i = 0; i < word.size(); i++){
    cout << word[i] << flush;
SilentShadowBla (500)

yes longer but still effective @Mapaor4