Results 1 to 4 of 4

Thread: Check Out My Newest Creation

  1. #1

    Thread Starter
    New Member technomania3000's Avatar
    Join Date
    Aug 2012
    Location
    Woodlynne, NJ
    Posts
    2

    Cool Check Out My Newest Creation

    Deleted
    Last edited by technomania3000; Jan 20th, 2013 at 03:56 PM. Reason: Deleted

  2. #2
    Super Moderator FunkyDexter's Avatar
    Join Date
    Apr 2005
    Location
    An obscure body in the SK system. The inhabitants call it Earth
    Posts
    7,902

    Re: Check Out My Newest Creation

    I'm not sure if I'm missing something but I don't think that'll work. Your loop's exit condition is based on Midpoint but you haven't maintained that within the loop so it will never exist. In fact it will simply keep iterating until EndPoint drops off the beginning of the index or StartPoint drops off the end, at which point you'll get an error.

    I'm also not aure what you're trying to do. Are you just swapping the order of your array? In which case it's not doing that either. It will bubble the bottom element to the top and the top to the bottom but the intermediate elements won't actually move. They'll temporarily shift one place toward their nearest boundary as the original boundary element passes them but they'll get shifted back again when the other other original boundary element goes past in the other direction.

    Am I missunderstanding what you're doing here?

    edit>Also, I don't understand what you're doing to set the midpoint in the first place. If you're looking for the median element in teh array you want (StartPoint+EndPoint)/2 (and then accomodate the fact that there be an even number of elements so no single median element) rather than StartPoint-EndPoint*2. Using your formula will result in a positive int when called from AllDescending and a negative when called from AllAscending. So given your Loops exit criteria this will do nothing when called from AllAscending and crash with an "Index out of Bounds" when called from AllDescending.
    Last edited by FunkyDexter; Aug 30th, 2012 at 05:39 AM.
    The best argument against democracy is a five minute conversation with the average voter - Winston Churchill

    Hadoop actually sounds more like the way they greet each other in Yorkshire - Inferrd

  3. #3
    PowerPoster ThEiMp's Avatar
    Join Date
    Dec 2007
    Location
    Take The PCI Bus Across To The CPU!!
    Posts
    3,911

    Re: Check Out My Newest Creation

    What does your source code really do, can it make coffee by itself and then all you do is just place in the cup, and then press a button???
    LOL
    I am just kidding, this source code really looks like VB.NET and then that is really cool. Because of the fact of the matter that many people like myself have stayed on the programming platform of the late 1990's. Which I am beginning to give up, right about now...

    So then what I was trying to say here, in this post. What does your snippet of source code, really do???
    I am very interested in that fact!!
    I have a huge free products range, of computer software in which you can download using any kind of 64-Bit Web Browser. Also there is coming a Social Networking section that I am making on my Website...

    |Ambra Productions Inc. | The Black Sun Society | The Black Shield | Ambra College | Church of the Black Sun | Ambra Productions Inc's Homepage | Boomtick Event's Venues: Ambar Nightclub, Jack Rabbit Slim's, Villa Nightclub and Lucy's Bar | Pasta Ambra | Fish Feast Company | Wallet Wizard | Ambrose Liquor | Ambar Tavern | Ambra University |

    Do you wish to do unpaid work for me??? If so, the PM me on this Forum, and then we can get to work, programming for the future of computers go by the name of ThEiMp. This is my ghost writers name. Also my nickname, means that I am: The Imperial of the Technology Industry, so then to make it really short, I just then wrote: The Imp, which is where I get the nickname from...

  4. #4

    Thread Starter
    New Member technomania3000's Avatar
    Join Date
    Aug 2012
    Location
    Woodlynne, NJ
    Posts
    2

    Re: Check Out My Newest Creation

    Even I must admit that the above creation of mine was a bad idea, which is why I deleted it.
    Last edited by technomania3000; Jan 20th, 2013 at 03:57 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width