![]() |
|
#1
|
|||
|
|||
[Warning] converting to `int' from `double'I seem to be having some issues with some code i've made for a recent project, and I come here to get some help with it.
I need to get this function to work.. It is supposed to find the median of a given one dimensional array.. but all I get is this error: Code:
Here is the function code: CPP / C++ / C Code:
Any help to make it work, is appreciated. Last edited by LuciWiz : 14-Dec-2008 at 13:34.
Reason: Please insert your C code between [cpp] & [/cpp] tags
|
|||
|
#2
|
|||
|
|||
Re: Function not working.CPP / C++ / C Code:
http://www.cplusplus.com/reference/c...ath/floor.html It really is not an issue if you mean it to be an integer value. |
|
#3
|
|||
|
|||
Re: Function not working.Quote:
ok thanks alot. |
|
#4
|
|||
|
|||
Re: Function not working.Quote:
Regards, Dave |
|
#5
|
|||
|
|||
Re: Function not working.Quote:
I would take his advice, he has ALWAYS been correct when helping me. |
|
#6
|
|||
|
|||
Re: Function not working.Quote:
Thank you for the kind words. However... I really, really try not to put out misleading or incorrect information, but everyone screws the pooch from time to time. In other words, and words, and words: "Trust, but verify." ---Ronald Reagen "Don't get all of your information from one place." ---davekw7x "Do your own research." ---Richard Feynman Regards, Dave |
|
#7
|
|||
|
|||
Re: [Warning] converting to `int' from `double'Quote:
I agree. Dave is ALWAYS correct. His knowledge is unbelievable. |
Recent GIDBlog
Vista ?Widgets? on Windows XP by LocalTech
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| run script command on ns2.26 | newbie06 | Computer Software Forum - Linux | 66 | 16-Jan-2010 10:53 |
| Airport Log program using 3D linked List : problem reading from file | batrsau | C Programming Language | 11 | 29-Feb-2008 07:44 |
| Flex and bison coding | lucky88star | C++ Forum | 5 | 24-Dec-2007 11:57 |
| Need Help with input files. | Efferus | C++ Forum | 2 | 24-Nov-2007 16:19 |
| [Include] Doubly-linked List | dsmith | C Programming Language | 6 | 14-Apr-2006 13:12 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The