|
[25 Apr 2003|03:59pm] |
Hey guys. Here' some baby stuff for you. Any advice as to how this might work will be great.
We're asked to create 2 arrays, size=20, one holds integers and the other doubles. The user enters the values via keyboard. Next, I have to figure out the average for both arrays. I have the headers set for both arrays already, but I'm stuck with the function calls, which need to be in the main. I declared them as
avgA=avg(arr1); avgB=avg(arr2);
but obviously there's something wrong. I get the 2 errors that say arr1, arr2 are undeclared identifiers. maybe i've just been looking into it so deeply, or maybe it's coz I can't think anymore. =(
Here's the rest of the code:
( Read more...Collapse )
|
|