hawashq wrote:
> http://visualcsamples.awardspace.co.uk/

And from:
http://visualcsamples.awardspace.co.uk/countingpostivenumbers2.htm

Comes the line:
              sum-= c[i] ;// concel the addiction

To the OP:  Please don't publish code until you have significantly more 
experience.  The Internet is laden with bad code and you're only 
contributing.  The above page is a perfect example.  What happens if the 
person enters '201' (without quotes) for the first question?  You'll end 
up with a buffer overflow.  I highly recommend reading the sections in 
Safe C++ Design Principles (free e-book for c-prog members) on 
application security.

-- 
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197

*NEW* MyTaskFocus 1.1
Get on task.  Stay on task.

http://www.CubicleSoft.com/MyTaskFocus/

Reply via email to