r/badcode • u/SecretPotatoChip • Dec 04 '21
c++ I didn't remember how the find function worked, so instead of using that correctly I just pop back until it reaches a space
15
Upvotes
r/badcode • u/SecretPotatoChip • Dec 04 '21
13
u/--var Dec 05 '21
Even if you told me "poorly re-write this function", I wouldn't come up with this.
4
u/SecretPotatoChip Dec 04 '21
Ignore the second line. That's how I got find() to work properly.
1
u/_abscessedwound Dec 21 '21
I find your lack of iterators.... disturbing.
2
u/MurdoMaclachlan public boolean isInt(int i) { return true; } Dec 05 '21
Image Transcription: Code
I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!
0
u/[deleted] Dec 05 '21
[deleted] — view deleted comment