Unfortunately, a cough is a natural process of clearing fluid from your airway. Your doctor is right, if you suppress your cough the bacteria you are trying to expel out through your cough could cause pneaumonia. Stay healthy, lots of fluids, rest and let the flu play its course.
Drink a lot. water therapy will help your body to fight cough and flu.