thanks for your help
thanks for your help
Last edited by cmania112; 05-12-2007 at 04:09 PM. Reason: workin
problem is solved
Last edited by cmania112; 05-12-2007 at 04:10 PM.
This is your problem line:
You defined pop2() to take 3 floats, but you're only giving it one. You need to give it 3.Code:return (pop2(n-1))+(pop2(n-2)*(num1))-(pop2(n-1)*(num2));
I'm guessing since you didn't say what the code is supposed to do, but I think you mean something like this:
Code:return (pop2(n-1),num1,num2)+(pop2(n-2,num1,num2)*(num1))-(pop2(n-1,num1,num2)*(num2));
to solve the problem c2660 precisely control your inputs if there is not a problem there look at your return comment
Last edited by cmania112; 05-12-2007 at 04:12 PM.
Are you supposed to be putting pop() instead of pop2() inside that return statement then?
Edit: Nevermind, you appeared to have solved your problem judging from your first two posts that have been edited, however, it's inadvisable to delete your original posts since it generally makes the resulting discussion incomplete. In addition, others that might have similar problems to yours and would otherwise be able to search and find this topic and receive help or would like to be able to read the thread in its full form can no longer do so.
Last edited by MacGyver; 05-12-2007 at 04:15 PM.
i fixed the problem by your help i worked nearly 2 hours to solve it thank you very much there is a missing char in the comment line but i found it