For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > January 2008 > Re: bitmap class









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: bitmap class
Syren Baran

2008-01-21, 7:28 pm

Lars Uffmann schrieb:
> Talking about returning a logical true - am I in danger of running into
> trouble by assuming true != -1?

Since you doing c++ here, yes. 0 equals false, every other value is true
for branch control statements like if, for or while.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com