Is there anyway I can center text?
Is there anyway I can center text?
On a console???? to the screen??????on a printout????? on a window?????
In a DOS window run in windows or just DOS.
Yes there is a way. You have to use library "conio.h" and function "gotoxy".
Definition of function "gotoxy": void gotoxy(int x, int y);
Current projects:
1) User Interface Development Kit (C++)
2) HTML SDK (C++)
3) Classes (C++)
4) INI Editor (Delphi)
Code:int textlen=strlen(text); int textwidth=textlen>>1; int printcolumn=(MaxColumns>>1)-textwidth;