Created
December 17, 2019 09:22
-
-
Save asSqr/9ed425fdf113fa70ecd22065e30dc3d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <fstream> | |
#include <sstream> | |
#include <string> | |
std::string fileName; | |
std::string tab; | |
void indent() | |
{ | |
tab += " "; | |
return; | |
} | |
void unindent() | |
{ | |
tab = tab.substr( 2 ); | |
return; | |
} | |
void newline( std::string &s ) | |
{ | |
s += "\n"; | |
s += tab; | |
return; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment