View Single Post

   
  #5 (permalink)  
Old 02-21-2008, 05:33 AM
Yeti
 
Posts: n/a
Default Re: You know you've had to much to drink, when....

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chris Sorenson wrote:

> if (number > .08) {
> printf("No root for you!\n")
> exit(1);


I got a "breathalizer" from my mother recently (still can't figure out
why) and it's some El Cheapo Chinese model that has just two LEDs (one
of them two-color). When the two-color one goes red, you're drunk (or
something like that). So just a binary operation would be needed:

if isWorking(/dev/breathalizer)
{
bool number = user->blow()

if (number = 1) {
printf("No root for you!\n")
exit(1);
}
}

(Sorry for any mistakes, I can't speak C at all
Yeti
- --
This message is best viewed with open eyes.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGxDq9Py/9LATNIMwRAvi5AJwO1EC9sudFpd14ug/7z4Xz+GK4pgCdHyHw
bBiIdSlF/q1FkELqmASdL74=
=dE4T
-----END PGP SIGNATURE-----
Reply With Quote