A converter from noncommutative polynomial optimization problems to sparse SDPA input format -- C++ version