Thread: Help logic question! C =P

  1. #1
    Registered User
    Join Date
    Mar 2005
    Posts
    2

    Help logic question! C =P

    if you are given 4 values

    a b c d

    what is easiest way to *drop the value with the lowest number as a function in C?


    thanks

    sorry edit
    Last edited by Eladmir; 03-04-2005 at 02:36 AM.

  2. #2
    Registered User
    Join Date
    Mar 2005
    Posts
    2
    Someone please help me out just gotta remember how to do this and i'm done with this program! thanks.

  3. #3
    Registered User
    Join Date
    Feb 2005
    Posts
    12
    The problem statement doesn't seem to be very clear.
    If you want to only drop the value, then compare their ascii value and then remove it from the array or wherever you're storing it.

  4. #4
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Also, don't bump your own threads. Go read the forum announcements again, since you apparently either didn't the first time, or you simply chose to ignore the rules. Either way you're in the wrong.

    Furthermore, we don't sit around 24 hours a day waiting to scramble to answer everything that comes along within the instant it's posted. I don't know about everyone else here, but Kermi3 doesn't pay me enough for that.

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

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    > what is easiest way to *drop the value with the lowest number as a function in C?
    Well the < operator allows you to establish a relation between two things
    And a for loop allows you to examine all of them
    So combine them both to achieve what you want.
    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.

  6. #6
    Sweet
    Join Date
    Aug 2002
    Location
    Tucson, Arizona
    Posts
    1,820
    You get payed quzah? I need to have a chat with kermi
    Woop?

  7. #7
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    No, I don't get paid, that was the whole point. But let me know how that chat works out for ya, maybe I'll have one of my own...

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

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. platform game logic, problem
    By Akkernight in forum Game Programming
    Replies: 7
    Last Post: 02-23-2009, 10:49 AM
  2. OOP Question DB Access Wrapper Classes
    By digioz in forum C# Programming
    Replies: 2
    Last Post: 09-07-2008, 04:30 PM
  3. opengl DC question
    By SAMSAM in forum Game Programming
    Replies: 6
    Last Post: 02-26-2003, 09:22 PM
  4. God
    By datainjector in forum A Brief History of Cprogramming.com
    Replies: 746
    Last Post: 12-22-2002, 12:01 PM
  5. Very simple question, problem in my Code.
    By Vber in forum C Programming
    Replies: 7
    Last Post: 11-16-2002, 03:57 PM