C++ course design, electric gas management system