Veteran sentenced to 18 years for molesting a child