PDA

View Full Version : Question on C programming.



Alexceptional
11-11-10, 15:21
Hopefully there is somemone on the forums who knows a bit of C.

I need a code that will find the minimum value in a string of 8 numerical values. Anyone know how?

Cheers.

wuyanxu
11-11-10, 15:25
for loop?

why don't you come up with somoething, then we'll suggest ways to improve on it.

Gav
11-11-10, 15:36
For loop is definately the way to go about it. As above, I don't really want to do what I assume is your homework for you and post a solution, as you'll never learn otherwise :p

Lorem-Ipsum
11-11-10, 15:40
Oh come on. At least do some of the work yourself XD

DoubleTop
11-11-10, 15:51
must resist temptation to write "underhand c" :chuckle:

sb89
11-11-10, 17:32
I don't mind giving you a hand if you post what you've done so far and how the string is formatted.

dtc
14-11-10, 17:57
You may need these commands:

http://www.elook.org/programming/c/atoi.html

Alexceptional
14-11-10, 19:46
Lol I know I should work it out for myself, I was in "frustrated with C" mode when I posted this.

I've got it all working now so the thread can be closed. Cheers for the help offers anyways guys!

Mr Banana
17-11-10, 14:14
In other words you went to an actual programming forum and someone else did it for you...:P

NickCPC
17-11-10, 23:06
Closing as requested :)