Hello all! My first post here. My teacher gave me this code below for me to debug, it was about 11 errors in it and it's just one error left.. The error I get is "error C2679" Just started my c++ class one week ago so I'm a complete beginner. Help would be much appreciated. //Carl

Btw, the program is supposed to point at values inputed by user and show them on screen. It goes wrong when I try to input a name in a char array.

Code:
#include <iostream>
#include <cstring>

using std::cin;
using std::cout;
using std::endl;
using std::string;

void initialize(char[], int *);
void input(const char [], int &);
void print(const char *, const int);
void growOlder(const char [], int *);
bool comparePeople(const char*, const int *, const char *, const int *);

int main()
{
	char name1[25];
	char name2[25];
	int age1;
	int	age2;
	int *agePtr1 = &age1;
	int *agePtr2 = &age2;

	initialize(name1, &age1);
	initialize(name2, &age2);

	print(name1, age1);
	print(name2, age2);

	input(name1, age1);
	input(name2, age2);

	print(name1, *agePtr1);
	print(name2, *agePtr2);

	growOlder(name2, &age2);

	if(comparePeople(name1, &age1, name2, &age2))
		cout << "Both people have the same age" <<endl;
	return 0;
};

void initialize(char name[], int *age)
{
	*name = 0;
	*age = 0;
};

void input (const char name[], int &age)
{
	cout << "Enter a name: ";
	cin >> name;                       //This is where I get the error :(  (error C2679)
	cout << "Enter an age: ";
	cin >> age;
	cout << endl;
}
void print(const char name[], const int age)
{
	cout << "The value stored in variable name is: " << name << endl << "The value stored in variable age is: " << age << endl << endl;
}

void growOlder(const char name[], int *age)
{
	cout << name << " has been grown one year older" << endl << endl;
	*age++;
}

bool comparePeople(const char* name1, const int *age1, const char *name2, const int *age2)
{
	return (age1 == age2 && strcmp(name1, name2));
}