error C2664: 'F_Ite' : cannot convert parameter 1 from 'double *' to 'double'

I am facing an error pls anyone help me to solve this problem.
Thanks

[code]#include<iostream>
#include<cmath>
#include<algorithm>

using namespace std; // you should not use this statement.
void F_Ite(double,double,double,double,double,double);
// never ever declare global data in C++

//Globally Data_type Declaration & Initialization :
double z=0.0001;
double NR=0.01;
int NI=11;
double RF;

int main(int argc, char* argv[]) // put the othe arguments for main (int argc, char* argv[])
{
double R_Fibo();

return 0;
}



double R_Fibo()
{
.....
}



void F_Ite(double *a, double *b, double *c, double *d, double *Fc, double *Fd)
{

....

}
Last edited on
The forward declaration of F_Ite: void F_Ite(double,double,double,double,double,double); doesn't match with its definition:
1
2
3
4
void F_Ite(double *a, double *b, double *c, double *d, double *Fc, double *Fd)
{ 
    //...
}
Thank you Bazzy as it has been solved.
Thanks
I've written below simple code.Actually need to do that the value which is given by an user that will use as macro and macro value will automatically initialyzed to all needed place.Not to given every time.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include<iostream>
#include "conio.h"
#define AB def()

int main(int argc, char* argv)
{
int a=3,b=2;
int def();
int add(int,int);
int sub();
std::cout << "\nAddition Result :" << add(a,b);
std::cout << "\nSubtraction Result :" << sub();
_getch();
//std::cin.get();
//system("pause");
return 0;
}

int def()
{
	int m;
	std::cout << "\nEnter The Value Of Def :";
	std::cin >> m;
	return m;
}

int add(int x,int y)
{
 return (AB+x+y);

}

int sub()
{int v;
	std::cout << "\nEnter The Value Of v :";
	std::cin >> v;
	int n=(AB-v);
 return (n);

}
So please any C/C++ expert help me to solve this. Thanks a lot.
Topic archived. No new replies allowed.