Help logic question! C =P

This is a discussion on Help logic question! C =P within the C Programming forums, part of the General Programming Boards category; if you are given 4 values a b c d what is easiest way to *drop the value with the ...

  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 01: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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,668
    > 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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  6. #6
    Sweet
    Join Date
    Aug 2002
    Location
    Tucson, Arizona
    Posts
    1,807
    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, 09: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, 08:22 PM
  4. God
    By datainjector in forum A Brief History of Cprogramming.com
    Replies: 746
    Last Post: 12-22-2002, 11:01 AM
  5. Very simple question, problem in my Code.
    By Vber in forum C Programming
    Replies: 7
    Last Post: 11-16-2002, 02:57 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21