I get a sharp pain on the top off my head when I cough, what could this be?

Coughing. Can cause the head to hurt, especially if one has been coughing for days.If this persists, you must see a doctor to treat your cough and to make sure there is nothing more serious going on.