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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.