| View previous topic :: View next topic |
| Author |
Message |
cola_man
Joined: 31 Dec 2005 Posts: 1
|
Posted: Sat Dec 31, 2005 4:36 am Post subject: How would I center my text? |
|
|
Hey I just started dev and have recently been getting into c/c++ programming and was wondering how would I center my text?
| Code: | | 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? |
|
| Back to top |
|
 |
weltall
Joined: 20 Feb 2004 Posts: 310
|
Posted: Sun Jan 01, 2006 12:35 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
|