Turn off electric mode in C++