No pain in my stomach I eat and throw up after I eat I feel better and cough every night?
Likely gastric ulcer
People with gastric ulcer have episodes of vomiting after eating.
Reflux of acid is the reason for night time cough. Needs evaluation by gastroenterologist.