Thread: help for fix!

  1. #1
    Registered User
    Join Date
    May 2007
    Posts
    4

    ok

    thanks for your help
    Last edited by cmania112; 05-12-2007 at 04:09 PM. Reason: workin

  2. #2
    Registered User
    Join Date
    May 2007
    Posts
    4
    problem is solved
    Last edited by cmania112; 05-12-2007 at 04:10 PM.

  3. #3
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,210
    This is your problem line:

    Code:
    return (pop2(n-1))+(pop2(n-2)*(num1))-(pop2(n-1)*(num2));
    You defined pop2() to take 3 floats, but you're only giving it one. You need to give it 3.

    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));

  4. #4
    Registered User
    Join Date
    May 2007
    Posts
    4
    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.

  5. #5
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,210
    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.

  6. #6
    Registered User
    Join Date
    May 2007
    Posts
    4
    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

Popular pages Recent additions subscribe to a feed