Hello i know a decent amount of c++. Now what my program is going to be is dos windows and a input of commands that make web pages.For example if i typed in new-back color-blue that would make the background color blue.I will be using fstream and string.
(you need something a bit more intelligent though, as this doesn't take care of plain text)
Then add functions to move around this tree (have a Tag* current), print current subtree, add and remove children or parameters. The hard part is to figure out how to conveniently address tags. As there could, for example, be several <p> in your <center>, you need to tell which one you're trying to work with. You could give all tags implicit id's, or you could only access tags with commands "goto_parent", "goto_first_child", "goto_next_sibling", or you could access them by their positions in children vector. Either way, it isn't going to be too comfortable.