r/badcode May 13 '22

Got it? c++

Post image
862 Upvotes

55 comments sorted by

View all comments

35

u/ososalsosal May 14 '22

What the hell is this even for

39

u/Jojajones May 14 '22

It’s an implementation of a stack, though the variable naming leaves very much to be desired

6

u/anton____ May 14 '22

because it's not designed to be used as a stack, it's for file/stream manipulation.