Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » Some new functions
Re: Some new functions [message #30037 is a reply to message #29820] Sat, 04 December 2010 20:38 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
koldo wrote on Fri, 19 November 2010 19:01

Hello

Here there are a few functions that could be added to U++:

[code]inline bool Odd(int val) {return val%2;}
inline bool Even(int val) {return !Odd(val);}



Thinking about it, for me it is much easier to remember that a byte has a least significant bit than to remember what is even and what is odd... Smile

[Updated on: Sat, 04 December 2010 20:38]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to commit on svn ?
Next Topic: FileSel change
Goto Forum:
  


Current Time: Thu May 16 11:21:23 CEST 2024

Total time taken to generate the page: 0.02481 seconds