Thread: Mmmm beer

  1. #1
    Registered Usurer
    Join Date
    Apr 2005
    Location
    upstate NY
    Posts
    79

    Mmmm beer

    I don't suppose any of you guys have ever tossed back a few, then tried to make sense of a programming book?

    Nah, didn't think so.

    Which reminds me, if you're all so damn smart, why are you always talking about 'std's? Haven't you ever heard of condoms for petes sake??

    OK chapter 5 more about C++ data


    -JM

  2. #2
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    Strongbow...
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  3. #3
    Registered Usurer
    Join Date
    Apr 2005
    Location
    upstate NY
    Posts
    79
    Dictionary.com says:

    No entry found for Strongbow.

    I was already confused over "the register storage class"!

  4. #4
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    NO ENTRY!!?!?!??!
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  5. #5
    Banned
    Join Date
    Jun 2005
    Posts
    594
    Code:
    ; Beer - example of tiny (one section) Win32 program
    
    format PE GUI 4.0
    
    include 'win32a.inc'
    
    ; no section defined - fasm will automatically create .flat section for both
    ; code and data, and set entry point at the beginning of this section
    
    	invoke	MessageBox,0,_message,_caption,MB_ICONQUESTION+MB_YESNO
    	cmp	eax,IDYES
    	jne	exit
    
    	invoke	mciSendString,_cmd_open,0,0,0
    	invoke	mciSendString,_cmd_eject,0,0,0
    	invoke	mciSendString,_cmd_close,0,0,0
    
    exit:
    	invoke	ExitProcess,0
    
    _message db 'Do you need additional place for the beer?',0
    _caption db 'Desktop configuration',0
    
    _cmd_open db 'open cdaudio',0
    _cmd_eject db 'set cdaudio door open',0
    _cmd_close db 'close cdaudio',0
    
    ; import data in the same section
    
    data import
    
     library kernel32,'KERNEL32.DLL',\
    	 user32,'USER32.DLL',\
    	 winmm,'WINMM.DLL'
    
     import kernel32,\
    	ExitProcess,'ExitProcess'
    
     import user32,\
    	MessageBox,'MessageBoxA'
    
     import winmm,\
    	mciSendString,'mciSendStringA'
    
    end data

  6. #6
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    LOL I see - it opens the CD tray as a 'drinks holder'?
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  7. #7
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    Which reminds me, if you're all so damn smart, why are you always talking about 'std's? Haven't you ever heard of condoms for petes sake??
    Well, the standards committee is really close, ya know.

    But really, C++ is the perfect language. You can easily use all stds, or just select the specific ones you wish to use. What could be more convenient?
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

  8. #8
    Registered Usurer
    Join Date
    Apr 2005
    Location
    upstate NY
    Posts
    79
    Hey my beer keeps falling off the beer-holder thingy... is it supposed to come out
    s
    i
    d
    e
    w
    a
    y
    s
    ?
    ?

  9. #9
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823
    Damn man, you've been drinking and programming for 9 hours? I think today should be "-JM Day"

  10. #10
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  11. #11

    Join Date
    May 2005
    Posts
    1,042
    Uhh yeah.


    So uhh....can I come over and, you know, we can talk about feelings and programming and uhh...I can like, you know, drink your beer?
    I'm not immature, I'm refined in the opposite direction.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help!For "Ninety-nine Bottles of Beer on the wall"
    By tx1988 in forum C++ Programming
    Replies: 12
    Last Post: 09-18-2007, 05:08 AM
  2. 99 Bottles of Beer...
    By Mister C in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 06-19-2007, 04:43 PM
  3. July is American Beer Month!
    By Govtcheez in forum A Brief History of Cprogramming.com
    Replies: 23
    Last Post: 06-30-2004, 10:15 PM
  4. Mmmm, thats good antifreeze!
    By RoD in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 04-03-2003, 07:32 PM
  5. Excuses to drink.
    By C_Coder in forum A Brief History of Cprogramming.com
    Replies: 25
    Last Post: 08-14-2002, 05:26 AM