[C++] Thevenin Circuit Analysis