Write a program for pretty printing C++ programs; that is, for printing programs with consistent use of indentation, the number of spaces between tokens such as key words, parentheses, brackets, operators, the number of blank lines between blocks of code (classes, functions), aligning braces with key words, aligning else statements with the corresponding if statements, and so on. The program takes as input a C++ file and prints code in this file according to the rules incorporated in the pretty printing program. For example, the code
if (n == 1) { n = 2 * m;if (m<10)f(n,m-1); else f(n,m-2); } else n = 3 * m;should be transformed into
if (n == 1) { n = 2 * m; if (m<10) f(n,m-1); else f(n,m-2);}else n = 3 * m;
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.