how I can overcome this error C2679: binary '>>' : no operator found which takes a right-hand operand of type 'const char []'
<pre><code>#include &lt;iostream&gt;
using std::cout;
using std::cin;
using std::endl;

#include &lt;cstring&gt;

void initialize(char[],int*);
void input(const char[] ,int&amp;);
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;


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

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

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

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

 growOlder(name2,&amp;age2);

 if(comparePeople(name1,&amp;age1,name2,&amp;age2))
    cout&lt;&lt;"Both People have the same  name and age "&lt;&lt;endl;
 return 0;
}

void input(const  char name[],int &amp;age)
{
 cout&lt;&lt;"Enter a name :";
 cin&gt;&gt;name ;

 cout&lt;&lt;"Enter an age:";
 cin&gt;&gt;age;
 cout&lt;&lt;endl;
}

void initialize ( char name[],int *age)
{
 name[0]='\0'; 
 *age=0; }
void print ( const char name[],const int age )
{
 cout&lt;&lt;"The Value stored in variable name is :"
   &lt;&lt;name&lt;&lt;endl
  &lt;&lt;"The Value stored in variable  age is :"
   &lt;&lt;age&lt;&lt;endl&lt;&lt;endl;
}

void growOlder(const char name[],int *age)
{
 cout&lt;&lt; name &lt;&lt;" has grown one year older\n\n";
 *age++;
}
bool comparePeople (const char *name1,const int *age1,
     const char *name2,const int *age2)
{

return(*age1==*age2 &amp;&amp; !strcmp(name1,name2));

}
</code></pre>
