Skip to content

Commit

Permalink
Add start and end HTML tags
Browse files Browse the repository at this point in the history
  • Loading branch information
phma committed Sep 9, 2018
1 parent b7d8ea4 commit 98727ff
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions clotilde.cpp
Expand Up @@ -27,6 +27,16 @@
using namespace std;
vector<string> args;

void startHtml(spiralarc s)
{
cout<<"<html><head><title>Approximation</title></head><body>\n";
}

void endHtml()
{
cout<<"</body></html>\n";
}

void outArc(arc oneArc,Measure ms)
{
cout<<"<tr><td colspan=4>"<<ms.formatMeasurementUnit(oneArc.length(),LENGTH)<<"</td>";
Expand Down Expand Up @@ -83,12 +93,14 @@ int main(int argc, char *argv[])
ms.addUnit(ARCSECOND_B+DECIMAL+FIXLARGER);
for (i=1;i<argc;i++)
args.push_back(argv[i]);
startHtml(trans);
i=2;
do
{
approx=manyArc(trans,i);
outApprox(approx,trans,ms);
i++;
} while (maxError(approx,trans)>0.001);
endHtml();
return 0;
}

0 comments on commit 98727ff

Please sign in to comment.