interface for console with C++