Expert system on C++