C Program to Draw NPN Transistor using Graphics Function
C Program to Draw NPN 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(140, 190, 150, 210); line(130, 210, 150, 210); outtextxy(100, 250, "NPN Transistor"); getch(); closegraph(); } |