html translator progress

This is a discussion on html translator progress within the C++ Programming forums, part of the General Programming Boards category; I've just gotten started on this and haven't gotten to the juicy parts yet but thought I'd just share some ...

html translator progress

I've just gotten started on this and haven't gotten to the juicy parts yet but thought I'd just share some simple starting blocks to begin with (they'll be presuppositions for the complicated stuff anyway). The program compiles and works so far, and I just wondered what you guys think.

oh, ok, now I think I'm following. Basically, the #include in the header doesn't hurt anything and at the same time means that you don't have to worry as much about the order of your #include's in files that refer back to the header.

In any case, I figure if those of you who have been doing this for years prefer it, I should change my header to this:

Here's the decisive translation function, which I've at this point just tested on very simple source files. If anyone wants it (or the full program) after I've tested on real-world stuff, please let me know, and I'll email code or just post the whole thing here (it's not a big program by any means, but a little awkward for just sticking into a message board).

It's NOT intended to make all code look immediately just right on the web, but I'm hoping it solves everything except the spots where you want to put your line breaks (which is going to depend also on your particular web-page). It also should solve SOME of the line-break problems, so as to leave minimal and easy editing after the program has run.