Converts pseudocode to c++ code.