int enterID(char *input, int count)
{
int IdImage;
cout<<"\nEnter ID#: ";
cin>>IdImage;
cout<<IdImage; // the data is correct here
if (IdImage <10)
{
input[count]='#';
count+=1;
input[count]=IdImage; //the problem is here I think
cout<<"input[count]= "<<input[count]; //this line
//displays a happy face
count+=1;
input[count]='.';
count+=1;
return count;
}
}
Here is a part of my program. The program runs fine. BUT I'm trying insert "IdImage" number "input[count]" but it always display a happy face.