//program for string generation in different font//
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<iostream.h>
void main()
{
char st1[20];
int i,gd=DETECT,gm;
initgraph(&gd,&gm,"c:\\tc\\bgi");
printf("\nEnter string\n");
scanf("%s",&st1);
for(i=0;i<5;i++)
{
cout<<endl;
settextstyle(i,0,5);
outtext(st1);
getch();
}
getch();
}
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<iostream.h>
void main()
{
char st1[20];
int i,gd=DETECT,gm;
initgraph(&gd,&gm,"c:\\tc\\bgi");
printf("\nEnter string\n");
scanf("%s",&st1);
for(i=0;i<5;i++)
{
cout<<endl;
settextstyle(i,0,5);
outtext(st1);
getch();
}
getch();
}
No comments:
Post a Comment