c++ cZar
Wednesday, December 2, 2009
Some macros
#define SQR(x) ((x)*(x))
#define MAX(a,b) ( (a) > (b) ? (a) : (b) )
#define ISLP(y) ( (y % 400 == 0) || (y %100 != 0 && y%4 == 0) )
#define ISLOWER(a) (a>=97 && a<=127)
#define TOLOWER(a) (a - 32)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment