Top.Mail.Ru
The C++ Community's Journal -- Day
? ?
The C++ Community's Journal -- Day [entries|friends|calendar]
The C++ Community

[ userinfo | livejournal userinfo ]
[ calendar | livejournal calendar ]

[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 )
34 comments|post comment

navigation
[ viewing | April 25th, 2003 ]
[ go | previous day|next day ]
Image