I am writing a program for certain rather heavy mathematical computations and I use WINAPI functions for graphical output for debug purposes.
I want to output some internal variables on the screen for easier debug.
At the moment I use the following (working) code. I find it extremely clumsy and long. How can I rewrite it nicely? Thanks in advance for your advice!
/*code follows*/
void drawtext(int X1, int Y1, char* text, int length);
//...
//code I would like written better:
{
char text[20]="#Simplices:";
::_itoa(output.size,text+11,10);
drawtext(0,0,text,20);
char text2[20]="Direction#:";
::_itoa(directionIndex,text2+11,10);
drawtext(0,15,text2,20);
}