Sometimes, you just fuck up

I've spent the past two hours trying to debug this shitty program I wrote only to finally figure out the issue. For some stupid reason, I forgot to increment the one variable keeping track of the size of an array of strings. Am I an idiot Jow Forums? (faggot?) you decide

>Pic related, highlighted fucker is the kicker

Attached: Screenshot (2).png (1922x1091, 195K)

>Can't write a for loop without fucking up
user, I just can't even

Making a personal blog post about your homework is even more retarded OP.,

>Electron

Get the fuck out nigger

that's not Code you dumb fucking bitch.

Look closer, retard.

donovan pls

I can't stand IDEs, they just look so bloated.

If you're tripping over simple stuff, it's a good sign that you need to take a break. Come back when your stress levels are lower and mistakes won't kite you around like this.

Attached: 1420177771641.gif (500x334, 982K)

Use the std algorithms instead. In your case, that would mean something like
auto mod_index = std::count_if(mod_list.begin(), mod_list.end(), [](auto c) { return c == '@'; });

It's also better since it works as documentation of your intent.