C++ codes on Electrostatics