Sign On

matthew henry john bartlett

+64 27 211 3455
email me

Sunday 02 November, 02003

It’s a small world after all

by Matthew Bartlett @ 5:37 pm

I have a line in my C++ programming assignment:

 #define INFINITY 10000

7 Responses to “It’s a small world after all”

  1. jono says:

    sometimes its useful to define as -1

  2. matt says:

    whenever i need an ‘infinite’ value it’s usually to have something to initally compare with to find the smallest x in a set. so -1 wouldn’t work.

  3. jono says:

    thats when you compare as unsigned ints

  4. richface says:

    i agree with jono on the unsigned ints.

    also: how about using a banana integration with two half hitches in order to define a set of sub-parameters?

  5. holtslag says:

    I used to like this site… but then it started getting all techy…

  6. Java Jacobeam says:

    hey, you’re so much gooder looking than your brother Richard!

Leave a Reply

You must be logged in to post a comment.