SAN FRANCISCO - Mark Hurd, chief executive of computer giant Hewlett Packard (HP), has resigned following an investigation into charges of sexual harassment, the company announced Friday.