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 #30043 is a reply to message #30037] Sat, 04 December 2010 23:44 Go to previous message
koldo is currently offline  koldo
Messages: 3361
Registered: August 2008
Senior Veteran
mirek wrote on Sat, 04 December 2010 20:38

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


For me it is the opposite. When I have to work with bits I need to open the manual to know if it is >> or << ... Smile. I have poor memory. However Odd and Even is just that.

Anyway, there will be always Functions4U Smile.


Best regards
IƱaki
 
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 15:47:16 CEST 2024

Total time taken to generate the page: 0.02366 seconds