Hello friends how are you, today in this blog i will teach you what is file handling, types of file, operations on file , how file handling works and many programs using file handling in a very simple way.
Let's start
If you want to create a colorful and attractive project in C language then you can choose graphics because graphics in c allows us to create different types of geometrical shapes like circle, rectangle, line, square, arc etc and we can also apply color on these shapes.
In this type of programming we can draw different kinds of geometrical shape for example circle, rectangle, square, line etc in different color.
👉Initialization of graph
void initgraph(int *Graphics_driver, int *Graphics_mode, char *Driver_directory_path);
#include<stdio.h> #include<graphics.h> #include<conio.h> int main() { int gd = DETECT, gm; initgraph(&gd, &gm, "C:\\tc\\bgi"); //initialization of graphic mode circle(150,200,50); getch(); closegraph();//closing of graphic mode return 0; }
#include<stdio.h> #include<graphics.h> #include<conio.h> int main() { int gd = DETECT, gm; initgraph(&gd, &gm, "C:\\tc\\bgi"); //initialization of graphic mode line(150,150,250,250); getch(); closegraph();//closing of graphic mode return 0; }
#include<stdio.h> #include<graphics.h> #include<conio.h> int main() { int gd = DETECT, gm; initgraph(&gd, &gm, "C:\\tc\\bgi"); //initialization of graphic mode rectangle(150,150,350,250); getch(); closegraph();//closing of graphic mode return 0; }
0 Comments