See a doctor if the cough hasn’t gone away after several weeks. Also, if you notice any of these symptoms: