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
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.
Someone please help me out just gotta remember how to do this and i'm done with this program! thanks.
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.
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.
> 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.
You get payed quzah? I need to have a chat with kermi
Woop?
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.