Boost logo

Boost-Commit :

From: lists.drrngrvy_at_[hidden]
Date: 2008-03-12 20:45:41


Author: drrngrvy
Date: 2008-03-12 20:45:41 EDT (Wed, 12 Mar 2008)
New Revision: 43583
URL: http://svn.boost.org/trac/boost/changeset/43583

Log:
Try last commit again.
Text files modified:
   sandbox/SOC/2007/cgi/branches/acceptor_work/libs/cgi/example/acgi/amortization/main.cpp | 9 +++++++--
   1 files changed, 7 insertions(+), 2 deletions(-)

Modified: sandbox/SOC/2007/cgi/branches/acceptor_work/libs/cgi/example/acgi/amortization/main.cpp
==============================================================================
--- sandbox/SOC/2007/cgi/branches/acceptor_work/libs/cgi/example/acgi/amortization/main.cpp (original)
+++ sandbox/SOC/2007/cgi/branches/acceptor_work/libs/cgi/example/acgi/amortization/main.cpp 2008-03-12 20:45:41 EDT (Wed, 12 Mar 2008)
@@ -10,7 +10,12 @@
 // Amortization Calculator
 // -----------------------
 //
-// This file uses Google cTemplate to show the benefits of
+// This file uses Google cTemplate to show the benefits of using an
+// HTML template engine. The code isn't commented, but should be
+// reasonably self-explanatory.
+//
+// It is a very basic amortization calculator.
+//
 #include <iostream>
 #include <boost/cgi/acgi.hpp>
 #include <boost/algorithm/string/regex.hpp>
@@ -33,7 +38,7 @@
   std::string tmp( req.POST("LoanAmt").empty() );
   dict.SetValue("LoanAmt", tmp.empty() ? "$250,000" : tmp);
 
- tmp = req.POST("YearlyIntRate").empty();
+ tmp = req.POST("YearlyIntRate");
   dict.SetValue("YearlyIntRate", tmp.empty() ? "6.000" : tmp);
 
   boost::array<std::string, 8> year_opts


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk