Amplitudes and lifetimes of solar-like oscillations observed by CoRoT* Red-giant versus main-sequence stars