hello,does anyone have asource code for an incremental game.One like the popular 'Cookie Clicker'.

This simple games increase the number of points gained by clicks,or give some 'passive'points generation.

Yes, some people here do have such source code.
If you give us your teacher's email them we could email it directly to him/her and save you the effort of pretending that you wrote it.

Alternatively, you could read the DaniWeb Rules that you agreed to when you signed up, including
"Do provide evidence of having done some work yourself if posting questions from school or work assignments"