Thread: Cocktail Shaker Sort : Code

  1. #1
    Registered User
    Join Date
    Feb 2005
    Posts
    91

    Cocktail Shaker Sort : Code

    Hi !

    I need help on a cocktail shaker sort sample code in C/C++.

    Anyone got any links or have done it themselves b4. I tried to google it but haven't come up with anything concrete.

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    1) Buy a cocktail shaker.
    2) Buy some alcohol.
    3) Buy some cocktail mix.
    4) Put some alcohol into the shaker.
    5) Put some mix into the shaker.
    6) Put the lid on.
    7) Shake.
    8) Pour into a glass, ice optional.
    9) Drink.

    There's the pseudo-code. I'm going to go do a real world test on a variation of this now.

    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3

  4. #4
    Registered User
    Join Date
    Feb 2005
    Posts
    91
    good advice thantos but I like the one by quzah better..........

    aaaahhhhhhh............. the googling goes on , even a psuedocode algorithm would be great but unfortunataly ................................

  5. #5
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,005
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Explain this C code in english
    By soadlink in forum C Programming
    Replies: 16
    Last Post: 08-31-2006, 12:48 AM
  2. Problem : Threads WILL NOT DIE!!
    By hanhao in forum C++ Programming
    Replies: 2
    Last Post: 04-16-2004, 01:37 PM
  3. Sorting
    By vasanth in forum A Brief History of Cprogramming.com
    Replies: 12
    Last Post: 11-10-2003, 05:21 PM
  4. Seems like correct code, but results are not right...
    By OmniMirror in forum C Programming
    Replies: 4
    Last Post: 02-13-2003, 01:33 PM
  5. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM