The initial-boundary value problems for a class of nonlinear wave equations with damping term