Program takes a program which may not be indented


A "pretty print" program takes a program which may not be indented in any particular way, and produces a copy with the same program indented so that bracket pairs ({ and }) line up with inner pairs indented more than outer pairs, so that if-else statements, loops, switch statements, and so forth are indented as I have been doing during lecture.

This is for a C++ data structures class so it MUST be programmed in C++ and data structures need to be used in some way in order to figure this out (i.e. possibly stacks, queues, trees, sort algorithms etc, or something of that nature.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Program takes a program which may not be indented
Reference No:- TGS093249

Expected delivery within 24 Hours