Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actuallightxbulb

Posted 22 May 2013 - 05:10 AM

This book:

http://www.amazon.com/Sams-Teach-Yourself-One-Hour/dp/0672335670

I don't think it's the best one out there but I like it.

 

The "if (…) return true; else return false;" looks a bit, ehm, naive too...

Idk about that, you allocate an additional variable of type int on the stack, perform 3 subtractions and assignments and all in all the code doesn't look straight-forward(to me at least - especially if you consider what's the goal of the operator) - probably just a matter of taste.


#3lightxbulb

Posted 22 May 2013 - 05:09 AM

This book:

http://www.amazon.com/Sams-Teach-Yourself-One-Hour/dp/0672335670

I don't think it's the best one out there but I like it.

 

The "if (…) return true; else return false;" looks a bit, ehm, naive too...

Idk about that, you allocate an additional variable of type int on the stack, perform 3 subtractions and assignments and all in all the code doesn't look straight-forward(to me - especially if you consider what's the goal of the operator) - probably just a matter of taste.


#2lightxbulb

Posted 22 May 2013 - 05:09 AM

This book:

http://www.amazon.com/Sams-Teach-Yourself-One-Hour/dp/0672335670

I don't think it's the best one out there but I like it.

 

The "if (…) return true; else return false;" looks a bit, ehm, naive too...

Idk about that, you allocate an additional variable of type int on the stack, perform 3 subtractions and assignments and all in all the code doesn't lookstraight-forward(to me - especially if you consider what's the goal of the operator) - probably just a matter of taste.


#1lightxbulb

Posted 22 May 2013 - 05:09 AM

This book:

http://www.amazon.com/Sams-Teach-Yourself-One-Hour/dp/0672335670

I don't think it's the best one out here but I like it.

 

The "if (…) return true; else return false;" looks a bit, ehm, naive too...

Idk about that, you allocate an additional variable of type int on the stack, perform 3 subtractions and assignments and all in all the code doesn't lookstraight-forward(to me - especially if you consider what's the goal of the operator) - probably just a matter of taste.


PARTNERS