Main Site Documentation

Withdrawn C# question "++ not incrementing variable"


Just realized the answer as I was entering this post. I didn’t see anyway to withdraw the thread so I’ve just edited it. It was a simple and very dumb mistake that I’ll attribute to fatigue. When sleepy you just might enter " variable = variable ++" instead of “variable ++”


idafez, what about removing the space between the variable and the ++ ?





idafez said he solved it already. The extra space was prolly just a post typo


Thanks for looking into my post, gentlemen. When I did the original post with the code snippet and proofread what I’d sent the error jumped right out. Sometimes just looking at something in a different way helps. I do appreciate you taking the time to see if I needed help.

Now if you really want to tackle a problem, see if you can figure out the answer to this one: