When I run this code, the 2nd do while loop, wont show the month from the first do while, instead it just has it act exactly the same as the day variable, and change with each button press with the day. my print function prints the string at x, y using the font image i have.
I've not run your code, but it'd be safer to use the C string functions, like:
sprintf(month, "%i", i)
instead of trying to directly manipulate a char array. This also ensures your string is zero-terminated (as long as 'month' is defined as char[3] or larger).
Personally I'd rework your loops so that the input side is split slightly from the display/calculation side, so you'd have
1. Display current month
2. Get input
3. Change month depending on input
4. Loop
instead of at the moment where you're reading inputs in the middle of displaying your screen information, but that's just a personal style I guess.
im using my print b/c it using a bitmap font, and displays over what I have, its not like the printf that displays debug info.
This might be true, but what Nige suggested is not to prepare your string with that somehow ugly "if(i<10){month[0] = 32; month[1] = i+48; }else{month[0] = 49; month[1] = i+38;}" but with something more elegant. The recommended "sprintf" does not print to your screen, instead it outputs to the string buffer you specified. This way you are free to use all the printf features such as string output, integer, hex, floating point etc. and feed it to your own nifty text function. I don't know how your knowledge about printf is, but to clarify Nige's example: sprintf(month, "%i", i); fills your buffer "month" (which must be large enough) with the integer textual equivalent of what is inside your variable "i".
ok using that method, i don't need that stupid if then for first and 2nd digit.
The first set works fine (the month), but then when it gets to the day, it messes up still, it shows where month should be as "%" and the day as "%" and it doesnt change with button input.
To find out more about printf and what types of data you can output with it you may want to have a look at http://en.wikipedia.org/wiki/Printf - they have a quite good summary there.