If your lecturer is telling you to
1. Not do any thinking or research on your problem
2. Not learn anything on your own
3. Not comply with the C standard (i.e. using void main instead of int main; but then,
this post of yours uses int main, so make up your mind)
Then you really need to talk to the department head. Otherwise, I don't know what I said to do that your lecturer said not to. Please be explicit.
I've seen your other comments about how much this guy sucks, but honestly, if you wont drop it, then you need to take initiative or stop whining about it. Really, with all the college experience you've boasted, you should be mature and experienced enough to deal with something like this.
Go to the department head with some concrete evidence of just how worthless this guy is and have them do something about it. Hell, write your representative or minister of education or whatever.
But here, you're in the "C Programming" lecture hall. We're the teachers/professors. You play by our rules here. Go look it up and learn a little on your own. I know you're smart enough to. If nothing else, you'll end up smarter than your prof.