In function "btod" at the end of your listing, you should have:
<div class="orangebox">[code]</div>
instead of
<div class="orangebox">[code]</div>
Also you don't really need to include "stdafx.h". Apart from this, your algorithm should work well on all cases.
Login