adding HVE in C++