Sounds like a cold, or possibly flu.
Try not to visit the doctors if you can. It's not appreciated to go to a doctors or hospital with cold/flu.
If the cough persists for a while then do go to a doctor, as it might be something else. (Best to do this if the other symptoms disappear and the cough remains)
General advice is keep yourself comfortable, have plenty of fluids (Water, soup, stew), eat if you can, stick to a balanced diet for the meantime, and get some rest.
once I had a cough, and I stuff you not, for an entire year. It was terrible.
That's definitely the sort of situation where you go to a Doctor, silly.