Program to show the working of settextjustify with different justification in horizontal direction

#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>
void main()
{
  clrscr();
  int gm=DETECT,gd,i;
 initgraph(&gm,&gd,"");
settextjustify(0,0);  //(int horiz,int vert);
 settextstyle(0,0,1); //(font,direction,charsize)
outtextxy(250,50," WELCOME TO GRAPHICS");

 settextjustify(1,0);
 settextstyle(0,0,1);
 outtextxy(250,100," WELCOME TO GRAPHICS ");
 getch();
}

Leave a Reply