Even number not initialized error?

In my main program, I get an error stating my even number is not being iniatilized; however, in my void function, I have the evennumber initialized to zero.

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
 int _tmain(int argc, _TCHAR* argv[])
{
	//Initiliaze all the variable to zero
	int evennumber;
	int zeroe;
	int oddnumber;

	intitialize(zeroe, oddnumber, evennumber);

	cout<<"Please Enter in a number: ";
	int mynumber;
	readanumber(mynumber);

	_getch();
	return 0;
	
}
void intitialize ( int zeroes, int odd, int evens)
{

	zeroes=0;
	odd=0;
	evens=0;

}
Ahhh, nevermind! I think I have to use a reference parameter.
Yep!
Topic archived. No new replies allowed.