|
-
Jan 9th, 2006, 02:02 PM
#6
Re: C++ School Final Project
Code:
average1 = cat01();
You're calling the function without the 1052352 parameters you declared.
By the way, your input stuff won't work the way you intend it to. It looks like you wrote the code so that you can use arrays, but then didn't, and in a very weird way, too. And making the user enter the amount of categories three (correction: three + the third value he enters) times is ridiculous - just copy the value! (You know how to assign one variable to the other, do you?)
There are various other problems with the code, but I doubt you still have time to fix them.
Edit: Looking at it more closely, this code is so horribly broken, it's not even funny. What happens to all the parameters you pass to cat01? What's that name supposed to mean, anyway?
Where to begin ...?
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|