So basically, I've tried everything, and if it isn't too much trouble, can someone please rewrite my code, so that it will work.
Of course, it's not an obligation, but I am quite desperate to resolve this.
Again, I'd like to thank everyone who'd been helping me out here, thank you.
Minor Remark: I am doing my best to stick with C, because for some reason, I don't appreciate C++ too much. I feel that C's been quite neglected over time, which's a shame.
Thanks again for your help,