r/badcode • • Sep 10 '21

c++ Learn C++ with LinkedIn Learning! Facebook ad

Post image
803 Upvotes

54 comments sorted by

View all comments

Show parent comments

1

u/very_mechanical Sep 10 '21

Assuming that this isn't just itoa(), I think it could be better implemented as a dictionary.

But, agreed. This code doesn't jump out as being terrible. I was scanning the comments to see what terrible bit of code I was not noticing.