I've been wrecking my brain for hours now on how to store a value stored inside an integer variable to a character string or pointer variable.
I'm using the WriteConsoleOutputCharacter function to print out some text in colour, but I'm having trouble printing out numbers. The second arg of that function requires to be a string.
For example, if I had an
int num = 5;
and I wanted
to have the value of "5" or num, how would I go about doing that?
Currently if I try to use my integer variable for the function, I get an error: warning: passing arg 2 of 'WriteConsoleOutputCharacter' makes pointer from integer without cast.
Any ideas? Thanks for your help in advance..