#include<graphics.h>
#include<conio.h>
#include<stdlib.h>
main()
{
int gd=DETECT,gm,maxx,maxy,x=40,y=40,fst;
char str[40];
char *pattern[]={
"EMPTY_FILL","SOLID_FILL","LINE_FILL","LTSLASH_FILL",
"SLASH","BKSLASH_FILL","HATCH_FILL","XHATCH_FILL",
"INTERLEAVE_FILL","WIDE_DOT_FILL","CLOSE_DOT_FILL","USER_FILL"
};
initgraph(&gd,&gm,"c:\\tc\\bgi");
maxx=getmaxx();
maxy=getmaxy();
rectangle(0,10,maxx,maxy);
setcolor(WHITE);
outtextxy(175,0,"Pre-defined Fill Styles");

/*display different predefined styles*/
for(fst=0;fst<12;fst++)
{
setfillstyle(fst,MAGENTA);
bar(x,y,x+80,y+80);
itoa(fst,str,10);
outtextxy(x,y+100,str);
outtextxy(x,y+110,pattern[fst]);
x=x+150;
if(x>490)
{
y=y+150;
x=40;
}
}
getch();
closegraph();
restorecrtmode();
}

About Us       |     Portfolio       |      Services       |       Career        |    Contact Us       |      Industrial Training        |      Achievement 
Corporate Services
  Web Design and development
  Web Promotion (SEO)
  Multimedia/CD Presentation
  Software development

  E.Commerce

Training@balujalabs

  Software Courses
  Hardware Courses
  Networking.Courses
  Mobile Repairing Courses
  UGC Degrees
Student Corner
 Programming & Projects
 Placement Papers
 Project Ideas
 Synopsis Ideas

  Franchise Section

 Administrator
Franchise Inquiry
 
 

To demonstrate the creation and filling images.

 

 

 

 

 

 

 

 

 


1 Program that opens reading file and closes the file.
2 Program to write the values on a file.
3 Program to read data from a file.
4 Program that reads files and displays them on the screen
5 Program to demonstrate the use of fe of function
6 List the contents of a file on the screen, using fgets to read the file a character at a time.
7 Use of fget c and fput functions to make a copy of a text file junk to terminate the program enters a blank line.
8 Program that reads strings from the keyboard and writes them to file junk to terminate the program enter a blank line.
9 Program to create an address book to store address and phone numbers




 


     
         About Us       |     Portfolio       |      Services       |       Career        |    Contact Us       |      Industrial Training        |      Achievement