Page 1 of 1

How would I center my text?

Posted: Sat Dec 31, 2005 4:36 am
by cola_man
Hey I just started dev and have recently been getting into c/c++ programming and was wondering how would I center my text?

Code: Select all

scr_printf("test\n");
So far that is my code but I don't feel like spacing my text till it gets to the center is there a easier way?

Posted: Sun Jan 01, 2006 12:35 am
by weltall
you could try this:
void scr_setXY(int x, int y);
by using also this for the y int scr_getY(void);
and then you scr_printf