Share your repls and programming experiences

← Back to all posts
C++ slowprint
SilentShadowBla

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

Voters
FraseXAngie
FraserXAngie
mrpropel
Nickelo
tryan1402
Roar123
Highwayman
oignons
Foster_Bryant
RohilPatel
Comments
hotnewtop
Mapaor4

Can u explain me the:

Never seen it

SilentShadowBla

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

Mapaor4

@SilentShadowBla Would this had been correct?:

SilentShadowBla

yes longer but still effective @Mapaor4

ApoorvAgrawal

@Mapaor4 It's a for-each loop. It's the same thing as for (x of cars) in javascript.

Mapaor4

Good function

Roar123

This is nice! I don't know C++ and I can still appreciate it :)

AshleighBonner

Thanks. I learned new functions. Great job!

SilentShadowBla

np! glad you liked it @AshleighBonner

Highwayman

REALLY nice code. very clean!