C++ application without object orientation with string operations