I typed the following program:
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<stdlib.h>
#include<figures.h>
#include<dos.h>
#include<math.h>
void main()
{
int gdriver=DETECT,gmode;
initgraph(&gdriver,&gmode,"");
line(300,10,300,990);
settextstyle(TRIPLEX_FONT,0,1);
gotoxy(30,200);
outtext("Welcome");
getch();

}


 I expected the output as:


                                  |
                                  |
                                  |
                               Welcome  
                                  |                                             
 
                                  |              
 i.e, a vertical line and the text "Welcome" at the middle of the line.
But I got only the following output

     
             Welcome               |
                                   |
                                   |
                                   |
                                   |
                                                
i.e., at the top left the text "Welcome" and a vertical line.
Why this happens,
Can any one expln this pls...

Reply via email to