Hey,
Im having problems converting an integer to a character , it seems to either produce incorrect results when printed(usually some sort of ascii symbols) instead of the actual literal value.
char* str;
str = (char*)malloc(sizeof(char));
snprintf(str, 16, "%d", remainder[i]);
cout << str;
This is what im currently trying, but i tried a number of other ways including a direct cast from int to char, all cause a similar incorrect output, which seems to be their ascii equivelant and not the real value. Can anyone help me or point me in the direction of finding how to convert an integer 9 to char '9' please :)?