C Program to Draw PNP Transistor using Graphics Function
C Program to Draw PNP Transistor using Graphics Function
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #include<stdio.h> #include<conio.h> #include<graphics.h> void main() { int gd = DETECT, gm; initgraph(&gd, &gm, "c:\\tc\\bgi"); line(100, 100, 100, 200); line(70, 150, 100, 150); line(100, 125, 150, 90); line(100, 175, 150, 210); line(100, 175, 110, 200); line(100, 175, 125, 175); outtextxy(200, 150, "PNP Transistor"); getch(); closegraph(); } |