Every time I've posted for help, I get waayyy more comments on the fflush that my professor asks we use than on my actual problem or the rest of the code itself. Unfortunately, the alternatives to fflush seem to be pretty complicated and I can't figure out how to use any of the 5 or so that I have seen. I only ask because I want to make sure I do it right.
So I was thinking, what if I did my normal scanf() and then right after it I use a dummy scanf() that I kept empty to clean out any left over data?
I'm really new to C programming (about 2 months), so my thinking is probably filled with tons of absurdities, but I figured I'd ask.