SlideShare uma empresa Scribd logo
1 de 7
#include<stdio.h>
#include<conio.h>
#include<dos.h>
#include<graphics.h>
int initmouse();
void showptr();
void openwindow();
void closewindow();
void hideptr();
void getmousepos(int *,int*,int*);
void restrictptr(int,int,int,int);
int button,x,y,x1,y1,x2,y2,s;
long double num=0,get,num1=0,result=0;
long double addnum(int);
char opr;
int a,b,r,s,i1,count,c,sq,newnum=1,d=0;
union REGS i,o;
void main()
{
int driver=DETECT,mode;
int q,p[12];
char input;
char *inpu[4][4]={"1","2","3","4",
"5","6","7","8",
"9","0","+","-" ,
"*","/","clr","="};
char inp[4][4]={'1','2','3','4',
'5','6','7','8',
'9','0','+','-' ,
'*','/','l','='};
initgraph(&driver,&mode,"c:tcbgi");
if(initmouse()==0)
{
printf("not");
getch();
exit(0);
}
openwindow();
getch();
cleardevice();
setfillstyle(CLOSE_DOT_FILL,10);
bar(260,82,450,320);
bar(430,70,450,320);
setfillstyle(1,GREEN);
bar(236,82,432,300);
setcolor(GREEN);
rectangle(238,50,430,80);
rectangle(237,49,431,81);
rectangle(236,48,432,82);
c=240;
d=100;
s=0;
for(a=0;a<4;a++)
{
c=240;
for(b=0;b<4;b++)
{
setfillstyle(1,RED);
bar(c,d,c+40,d+40);
setcolor(YELLOW);
outtextxy(c+10,d+14,inpu[a][b]);
c+=50;
}
d+=50;
}
showptr();
num=0;
gotoxy(36,5);
printf("%18.1Lf",num);
count=0;
while(!kbhit())
{
outtextxy(30,20,"Press any key to exit..");
i1=0;
c=240;
d=100;
rectangle(0,0,638,478);
getmousepos(&button,&x,&y);
for(a=0;a<4;a++)
{
c=240;
for(b=0;b<4;b++)
{
if((x>=c&&x<=c+40)&&(y>=d&&y<=d+40))
{
if((button&1)==1)
{
while((button&1)==1)
{
setcolor(10);
rectangle(c,d,c+40,d+40);
rectangle(c-1,d-1,c+41,d+41);
rectangle(c-2,d-2,c+42,d+42);
break;
}
delay(100);
setcolor(GREEN);
rectangle(c,d,c+40,d+40);
rectangle(c-1,d-1,c+41,d+41);
rectangle(c-2,d-2,c+42,d+42);
input=inp[a][b];
switch(input)
{
case '1':
get=addnum(1);
gotoxy(36,5);
printf("%18.1Lf",get);
break;
case '2':
get=addnum(2);
gotoxy(36,5);
printf("%18.1Lf",get);
break;
case '3':
get=addnum(3);
gotoxy(36,5);
printf("%18.1Lf",get);
break;
case '4':
get=addnum(4);
gotoxy(36,5);
printf("%18.1Lf",get);
break;
case '5':
get=addnum(5);
gotoxy(36,5);
printf("%18.1Lf",get);
break;
case '6':
get=addnum(6);
gotoxy(36,5);
printf("%18.1Lf",get);
break;
case '7':
get=addnum(7);
gotoxy(36,5);
printf("%18.1Lf",get);
break;
case '8':
get=addnum(8);
gotoxy(36,5);
printf("%18.1Lf",get);
break;
case '9':
get=addnum(9);
gotoxy(36,5);
printf("%18.1Lf",get);
break;
case '0':
get=addnum(0);
gotoxy(36,5);
printf("%18.1Lf",get);
break;
case '+':
num1=num;
num=0;
opr='+';
gotoxy(36,5);
printf("%18.1Lf",num);
break;
case '-':
num1=num;
num=0;
opr='-';
gotoxy(36,5);
printf("%18.1Lf",num);
break;
case '*':
num1=num;
num=0;
opr='*';
gotoxy(36,5);
printf("%18.1Lf",num);
break;
case '/':
num1=num;
num=0;
opr='/';
gotoxy(36,5);
printf("%18.1Lf",num);
break;
case 'l':
num=0;
num1=0;
result=0;
count=0;
gotoxy(36,5);
printf("%18.1Lf",num);
break;
case '=':
switch(opr)
{
case '+':

case '-':

if(count<1)
{
result=num+num1;
}
else
{
result=result+num;
}
gotoxy(36,5);
printf("%18.1Lf",result);
count+=1;
break;
if(count<1)
{
result=num1-num;
}
else
{
result=result-num;
}
gotoxy(36,5);
printf("%18.1Lf",result);
count+=1;
break;

case '*':

case '/':

if(count<1)
{
result=num1*num;
}
else
{
result=result*num;
}
gotoxy(36,5);
printf("%18.1Lf",result);
count+=1;
break;
if(count<1)
{
result=num1/num;
}
else
{
result=result/num;
}
gotoxy(36,5);
printf("%18.1Lf",result);
count+=1;
break;

}

}

}
}
c+=50;

}
d+=50;

}
setcolor(YELLOW);
delay(150);
}

getch();
closewindow();
getch();
}
long double addnum(int getnum)
{
num=num*10+getnum;
return(num);
}
int initmouse()
{
i.x.ax=0;
int86(0x33,&i,&o);
return(o.x.ax);
}
void showptr()
{
i.x.ax=1;
int86(0x33,&i,&o);
}
void hideptr()
{
i.x.ax=2;
int86(0x33,&i,&o);
}
void restrictptr(int x1,int y1,int x2,int y2)
{
i.x.ax=7;
o.x.cx=x1;
o.x.dx=x2;
int86(0x33,&i,&o);
i.x.ax=8;
o.x.cx=y1;
o.x.dx=y2;
int86(0x33,&i,&o);
}
void getmousepos(int *button,int *x,int *y)
{
i.x.ax=3;
int86(0x33,&i,&o);
*button=o.x.bx;
*x=o.x.cx;
*y=o.x.dx;
}
void openwindow()
{
int aa,bb,cc,dd,maxx,maxy,i=10;
maxx=getmaxx();
maxy=getmaxy();
rectangle(0,0,maxx,maxy);
aa=250;
bb=400;
cc=260;
for(dd=250;dd<350;dd+=20)
{
setfillstyle(1,2);
bar(dd,bb,cc,bb+10);
cc+=20;
}
aa=250;
bb=400;
cc=260;
while(!kbhit())
{
setcolor(BLUE);
outtextxy(20,116,"Press any key to continue.......");
if((aa==350)&&(cc==360))
{
aa=250;
cc=260;
continue;
}
else
{
setcolor(10);
rectangle(aa,bb,cc,bb+10);
rectangle(aa-1,bb-1,cc+1,bb+11);
}
delay(300);
setcolor(BLACK);
rectangle(aa,bb,cc,bb+10);
rectangle(aa-1,bb-1,cc+1,bb+11);
aa+=20;
cc+=20;
}
}
void closewindow()
{
int i,j,k;
cleardevice();
rectangle(0,0,638,478);
k=0;
while(!kbhit())
{
setcolor(k);
settextstyle(5,0,8);
outtextxy(100,200,"THANK YOU");
line(90,300,600,300);
delay(200);
k++;
}
}
outtextxy(20,116,"Press any key to continue.......");
if((aa==350)&&(cc==360))
{
aa=250;
cc=260;
continue;
}
else
{
setcolor(10);
rectangle(aa,bb,cc,bb+10);
rectangle(aa-1,bb-1,cc+1,bb+11);
}
delay(300);
setcolor(BLACK);
rectangle(aa,bb,cc,bb+10);
rectangle(aa-1,bb-1,cc+1,bb+11);
aa+=20;
cc+=20;
}
}
void closewindow()
{
int i,j,k;
cleardevice();
rectangle(0,0,638,478);
k=0;
while(!kbhit())
{
setcolor(k);
settextstyle(5,0,8);
outtextxy(100,200,"THANK YOU");
line(90,300,600,300);
delay(200);
k++;
}
}

Mais conteúdo relacionado

Mais procurados

Hangman Game Programming in C (coding)
Hangman Game Programming in C (coding)Hangman Game Programming in C (coding)
Hangman Game Programming in C (coding)hasan0812
 
Data Structures : array operations in c program
Data Structures : array operations in c program Data Structures : array operations in c program
Data Structures : array operations in c program Raghavendra Narayan
 
Gaztea Tech Robotica 2016
Gaztea Tech Robotica 2016Gaztea Tech Robotica 2016
Gaztea Tech Robotica 2016Svet Ivantchev
 
Ass day2 1_checkerboard...copy in cpp
Ass day2 1_checkerboard...copy in cppAss day2 1_checkerboard...copy in cpp
Ass day2 1_checkerboard...copy in cppRobi Parvez
 
2. Базовый синтаксис Java
2. Базовый синтаксис Java2. Базовый синтаксис Java
2. Базовый синтаксис JavaDEVTYPE
 
硕士答辩Keynote
硕士答辩Keynote硕士答辩Keynote
硕士答辩Keynotepemi hua
 
computer graphics at openGL (2)
computer graphics at openGL (2)computer graphics at openGL (2)
computer graphics at openGL (2)Yasir Khan
 
54602399 c-examples-51-to-108-programe-ee01083101
54602399 c-examples-51-to-108-programe-ee0108310154602399 c-examples-51-to-108-programe-ee01083101
54602399 c-examples-51-to-108-programe-ee01083101premrings
 
An Introduction to Tinkerpop
An Introduction to TinkerpopAn Introduction to Tinkerpop
An Introduction to TinkerpopTakahiro Inoue
 
Assignement c++
Assignement c++Assignement c++
Assignement c++Syed Umair
 
2² C# 4.0 and .NET 4 Selected Features
2² C# 4.0 and .NET 4 Selected Features2² C# 4.0 and .NET 4 Selected Features
2² C# 4.0 and .NET 4 Selected FeaturesMustafa Isik
 
Array imp of list
Array imp of listArray imp of list
Array imp of listElavarasi K
 

Mais procurados (20)

Hangman Game Programming in C (coding)
Hangman Game Programming in C (coding)Hangman Game Programming in C (coding)
Hangman Game Programming in C (coding)
 
Data Structures : array operations in c program
Data Structures : array operations in c program Data Structures : array operations in c program
Data Structures : array operations in c program
 
Gaztea Tech Robotica 2016
Gaztea Tech Robotica 2016Gaztea Tech Robotica 2016
Gaztea Tech Robotica 2016
 
Ass day2 1_checkerboard...copy in cpp
Ass day2 1_checkerboard...copy in cppAss day2 1_checkerboard...copy in cpp
Ass day2 1_checkerboard...copy in cpp
 
cosc 281 hw2
cosc 281 hw2cosc 281 hw2
cosc 281 hw2
 
Oprerator overloading
Oprerator overloadingOprerator overloading
Oprerator overloading
 
2. Базовый синтаксис Java
2. Базовый синтаксис Java2. Базовый синтаксис Java
2. Базовый синтаксис Java
 
硕士答辩Keynote
硕士答辩Keynote硕士答辩Keynote
硕士答辩Keynote
 
computer graphics at openGL (2)
computer graphics at openGL (2)computer graphics at openGL (2)
computer graphics at openGL (2)
 
54602399 c-examples-51-to-108-programe-ee01083101
54602399 c-examples-51-to-108-programe-ee0108310154602399 c-examples-51-to-108-programe-ee01083101
54602399 c-examples-51-to-108-programe-ee01083101
 
An Introduction to Tinkerpop
An Introduction to TinkerpopAn Introduction to Tinkerpop
An Introduction to Tinkerpop
 
BCSL 058 solved assignment
BCSL 058 solved assignmentBCSL 058 solved assignment
BCSL 058 solved assignment
 
Vcs16
Vcs16Vcs16
Vcs16
 
Assignement c++
Assignement c++Assignement c++
Assignement c++
 
Implementing string
Implementing stringImplementing string
Implementing string
 
2² C# 4.0 and .NET 4 Selected Features
2² C# 4.0 and .NET 4 Selected Features2² C# 4.0 and .NET 4 Selected Features
2² C# 4.0 and .NET 4 Selected Features
 
Sbaw091020
Sbaw091020Sbaw091020
Sbaw091020
 
3. chapter ii
3. chapter ii3. chapter ii
3. chapter ii
 
Array imp of list
Array imp of listArray imp of list
Array imp of list
 
Casa
CasaCasa
Casa
 

Semelhante a 135

#include stdio.h #include stdlib.h #include unistd.h .pdf
 #include stdio.h #include stdlib.h #include unistd.h .pdf #include stdio.h #include stdlib.h #include unistd.h .pdf
#include stdio.h #include stdlib.h #include unistd.h .pdfnipuns1983
 
Daapracticals 111105084852-phpapp02
Daapracticals 111105084852-phpapp02Daapracticals 111105084852-phpapp02
Daapracticals 111105084852-phpapp02Er Ritu Aggarwal
 
Bubble archery game(c program)
Bubble archery game(c program)Bubble archery game(c program)
Bubble archery game(c program)SETYA HADI
 
Bubble archery game(c program)
Bubble archery game(c program)Bubble archery game(c program)
Bubble archery game(c program)SETYA HADI
 
Double linked list
Double linked listDouble linked list
Double linked listSayantan Sur
 
C Prog - Pointers
C Prog - PointersC Prog - Pointers
C Prog - Pointersvinay arora
 
Computer graphics lab assignment
Computer graphics lab assignmentComputer graphics lab assignment
Computer graphics lab assignmentAbdullah Al Shiam
 
Computer_Practicals-file.doc.pdf
Computer_Practicals-file.doc.pdfComputer_Practicals-file.doc.pdf
Computer_Practicals-file.doc.pdfHIMANSUKUMAR12
 
Program for hamming code using c
Program for hamming code using cProgram for hamming code using c
Program for hamming code using csnsanth
 
Lab programs FOR 8TH SEM EC SUBJECT BY LOHITH KUMAR |11GUEE6018
Lab programs FOR 8TH SEM EC SUBJECT BY LOHITH KUMAR |11GUEE6018Lab programs FOR 8TH SEM EC SUBJECT BY LOHITH KUMAR |11GUEE6018
Lab programs FOR 8TH SEM EC SUBJECT BY LOHITH KUMAR |11GUEE6018UVCE
 
Ejercicios de programacion
Ejercicios de programacionEjercicios de programacion
Ejercicios de programacionJeff Tu Pechito
 
Circular linked list
Circular linked listCircular linked list
Circular linked listSayantan Sur
 
Computer graphics lab manual
Computer graphics lab manualComputer graphics lab manual
Computer graphics lab manualUma mohan
 

Semelhante a 135 (20)

efy-articles
efy-articlesefy-articles
efy-articles
 
#include stdio.h #include stdlib.h #include unistd.h .pdf
 #include stdio.h #include stdlib.h #include unistd.h .pdf #include stdio.h #include stdlib.h #include unistd.h .pdf
#include stdio.h #include stdlib.h #include unistd.h .pdf
 
C program
C programC program
C program
 
Daapracticals 111105084852-phpapp02
Daapracticals 111105084852-phpapp02Daapracticals 111105084852-phpapp02
Daapracticals 111105084852-phpapp02
 
Bubble archery game(c program)
Bubble archery game(c program)Bubble archery game(c program)
Bubble archery game(c program)
 
Bubble archery game(c program)
Bubble archery game(c program)Bubble archery game(c program)
Bubble archery game(c program)
 
Double linked list
Double linked listDouble linked list
Double linked list
 
C Prog - Pointers
C Prog - PointersC Prog - Pointers
C Prog - Pointers
 
Computer graphics lab assignment
Computer graphics lab assignmentComputer graphics lab assignment
Computer graphics lab assignment
 
Computer_Practicals-file.doc.pdf
Computer_Practicals-file.doc.pdfComputer_Practicals-file.doc.pdf
Computer_Practicals-file.doc.pdf
 
Lập trình C
Lập trình CLập trình C
Lập trình C
 
R tist
R tistR tist
R tist
 
Program for hamming code using c
Program for hamming code using cProgram for hamming code using c
Program for hamming code using c
 
C code
C codeC code
C code
 
C questions
C questionsC questions
C questions
 
Lab programs FOR 8TH SEM EC SUBJECT BY LOHITH KUMAR |11GUEE6018
Lab programs FOR 8TH SEM EC SUBJECT BY LOHITH KUMAR |11GUEE6018Lab programs FOR 8TH SEM EC SUBJECT BY LOHITH KUMAR |11GUEE6018
Lab programs FOR 8TH SEM EC SUBJECT BY LOHITH KUMAR |11GUEE6018
 
Ejercicios de programacion
Ejercicios de programacionEjercicios de programacion
Ejercicios de programacion
 
Circular linked list
Circular linked listCircular linked list
Circular linked list
 
C programs
C programsC programs
C programs
 
Computer graphics lab manual
Computer graphics lab manualComputer graphics lab manual
Computer graphics lab manual
 

Último

Call Girls Thane Just Call 9910780858 Get High Class Call Girls Service
Call Girls Thane Just Call 9910780858 Get High Class Call Girls ServiceCall Girls Thane Just Call 9910780858 Get High Class Call Girls Service
Call Girls Thane Just Call 9910780858 Get High Class Call Girls Servicesonalikaur4
 
Mumbai Call Girls Service 9910780858 Real Russian Girls Looking Models
Mumbai Call Girls Service 9910780858 Real Russian Girls Looking ModelsMumbai Call Girls Service 9910780858 Real Russian Girls Looking Models
Mumbai Call Girls Service 9910780858 Real Russian Girls Looking Modelssonalikaur4
 
call girls in Connaught Place DELHI 🔝 >༒9540349809 🔝 genuine Escort Service ...
call girls in Connaught Place  DELHI 🔝 >༒9540349809 🔝 genuine Escort Service ...call girls in Connaught Place  DELHI 🔝 >༒9540349809 🔝 genuine Escort Service ...
call girls in Connaught Place DELHI 🔝 >༒9540349809 🔝 genuine Escort Service ...saminamagar
 
Russian Call Girls Chickpet - 7001305949 Booking and charges genuine rate for...
Russian Call Girls Chickpet - 7001305949 Booking and charges genuine rate for...Russian Call Girls Chickpet - 7001305949 Booking and charges genuine rate for...
Russian Call Girls Chickpet - 7001305949 Booking and charges genuine rate for...narwatsonia7
 
Call Girl Surat Madhuri 7001305949 Independent Escort Service Surat
Call Girl Surat Madhuri 7001305949 Independent Escort Service SuratCall Girl Surat Madhuri 7001305949 Independent Escort Service Surat
Call Girl Surat Madhuri 7001305949 Independent Escort Service Suratnarwatsonia7
 
Housewife Call Girls Hsr Layout - Call 7001305949 Rs-3500 with A/C Room Cash ...
Housewife Call Girls Hsr Layout - Call 7001305949 Rs-3500 with A/C Room Cash ...Housewife Call Girls Hsr Layout - Call 7001305949 Rs-3500 with A/C Room Cash ...
Housewife Call Girls Hsr Layout - Call 7001305949 Rs-3500 with A/C Room Cash ...narwatsonia7
 
Glomerular Filtration rate and its determinants.pptx
Glomerular Filtration rate and its determinants.pptxGlomerular Filtration rate and its determinants.pptx
Glomerular Filtration rate and its determinants.pptxDr.Nusrat Tariq
 
Call Girls Service Nandiambakkam | 7001305949 At Low Cost Cash Payment Booking
Call Girls Service Nandiambakkam | 7001305949 At Low Cost Cash Payment BookingCall Girls Service Nandiambakkam | 7001305949 At Low Cost Cash Payment Booking
Call Girls Service Nandiambakkam | 7001305949 At Low Cost Cash Payment BookingNehru place Escorts
 
call girls in green park DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
call girls in green park  DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️call girls in green park  DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
call girls in green park DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️saminamagar
 
College Call Girls Vyasarpadi Whatsapp 7001305949 Independent Escort Service
College Call Girls Vyasarpadi Whatsapp 7001305949 Independent Escort ServiceCollege Call Girls Vyasarpadi Whatsapp 7001305949 Independent Escort Service
College Call Girls Vyasarpadi Whatsapp 7001305949 Independent Escort ServiceNehru place Escorts
 
Pharmaceutical Marketting: Unit-5, Pricing
Pharmaceutical Marketting: Unit-5, PricingPharmaceutical Marketting: Unit-5, Pricing
Pharmaceutical Marketting: Unit-5, PricingArunagarwal328757
 
Asthma Review - GINA guidelines summary 2024
Asthma Review - GINA guidelines summary 2024Asthma Review - GINA guidelines summary 2024
Asthma Review - GINA guidelines summary 2024Gabriel Guevara MD
 
VIP Call Girls Mumbai Arpita 9910780858 Independent Escort Service Mumbai
VIP Call Girls Mumbai Arpita 9910780858 Independent Escort Service MumbaiVIP Call Girls Mumbai Arpita 9910780858 Independent Escort Service Mumbai
VIP Call Girls Mumbai Arpita 9910780858 Independent Escort Service Mumbaisonalikaur4
 
call girls in munirka DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
call girls in munirka  DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️call girls in munirka  DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
call girls in munirka DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️saminamagar
 
Call Girls In Andheri East Call 9920874524 Book Hot And Sexy Girls
Call Girls In Andheri East Call 9920874524 Book Hot And Sexy GirlsCall Girls In Andheri East Call 9920874524 Book Hot And Sexy Girls
Call Girls In Andheri East Call 9920874524 Book Hot And Sexy Girlsnehamumbai
 
Call Girl Service Bidadi - For 7001305949 Cheap & Best with original Photos
Call Girl Service Bidadi - For 7001305949 Cheap & Best with original PhotosCall Girl Service Bidadi - For 7001305949 Cheap & Best with original Photos
Call Girl Service Bidadi - For 7001305949 Cheap & Best with original Photosnarwatsonia7
 
Call Girls Frazer Town Just Call 7001305949 Top Class Call Girl Service Avail...
Call Girls Frazer Town Just Call 7001305949 Top Class Call Girl Service Avail...Call Girls Frazer Town Just Call 7001305949 Top Class Call Girl Service Avail...
Call Girls Frazer Town Just Call 7001305949 Top Class Call Girl Service Avail...narwatsonia7
 
Call Girls Hsr Layout Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Hsr Layout Just Call 7001305949 Top Class Call Girl Service AvailableCall Girls Hsr Layout Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Hsr Layout Just Call 7001305949 Top Class Call Girl Service Availablenarwatsonia7
 
Hematology and Immunology - Leukocytes Functions
Hematology and Immunology - Leukocytes FunctionsHematology and Immunology - Leukocytes Functions
Hematology and Immunology - Leukocytes FunctionsMedicoseAcademics
 
Book Call Girls in Kasavanahalli - 7001305949 with real photos and phone numbers
Book Call Girls in Kasavanahalli - 7001305949 with real photos and phone numbersBook Call Girls in Kasavanahalli - 7001305949 with real photos and phone numbers
Book Call Girls in Kasavanahalli - 7001305949 with real photos and phone numbersnarwatsonia7
 

Último (20)

Call Girls Thane Just Call 9910780858 Get High Class Call Girls Service
Call Girls Thane Just Call 9910780858 Get High Class Call Girls ServiceCall Girls Thane Just Call 9910780858 Get High Class Call Girls Service
Call Girls Thane Just Call 9910780858 Get High Class Call Girls Service
 
Mumbai Call Girls Service 9910780858 Real Russian Girls Looking Models
Mumbai Call Girls Service 9910780858 Real Russian Girls Looking ModelsMumbai Call Girls Service 9910780858 Real Russian Girls Looking Models
Mumbai Call Girls Service 9910780858 Real Russian Girls Looking Models
 
call girls in Connaught Place DELHI 🔝 >༒9540349809 🔝 genuine Escort Service ...
call girls in Connaught Place  DELHI 🔝 >༒9540349809 🔝 genuine Escort Service ...call girls in Connaught Place  DELHI 🔝 >༒9540349809 🔝 genuine Escort Service ...
call girls in Connaught Place DELHI 🔝 >༒9540349809 🔝 genuine Escort Service ...
 
Russian Call Girls Chickpet - 7001305949 Booking and charges genuine rate for...
Russian Call Girls Chickpet - 7001305949 Booking and charges genuine rate for...Russian Call Girls Chickpet - 7001305949 Booking and charges genuine rate for...
Russian Call Girls Chickpet - 7001305949 Booking and charges genuine rate for...
 
Call Girl Surat Madhuri 7001305949 Independent Escort Service Surat
Call Girl Surat Madhuri 7001305949 Independent Escort Service SuratCall Girl Surat Madhuri 7001305949 Independent Escort Service Surat
Call Girl Surat Madhuri 7001305949 Independent Escort Service Surat
 
Housewife Call Girls Hsr Layout - Call 7001305949 Rs-3500 with A/C Room Cash ...
Housewife Call Girls Hsr Layout - Call 7001305949 Rs-3500 with A/C Room Cash ...Housewife Call Girls Hsr Layout - Call 7001305949 Rs-3500 with A/C Room Cash ...
Housewife Call Girls Hsr Layout - Call 7001305949 Rs-3500 with A/C Room Cash ...
 
Glomerular Filtration rate and its determinants.pptx
Glomerular Filtration rate and its determinants.pptxGlomerular Filtration rate and its determinants.pptx
Glomerular Filtration rate and its determinants.pptx
 
Call Girls Service Nandiambakkam | 7001305949 At Low Cost Cash Payment Booking
Call Girls Service Nandiambakkam | 7001305949 At Low Cost Cash Payment BookingCall Girls Service Nandiambakkam | 7001305949 At Low Cost Cash Payment Booking
Call Girls Service Nandiambakkam | 7001305949 At Low Cost Cash Payment Booking
 
call girls in green park DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
call girls in green park  DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️call girls in green park  DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
call girls in green park DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
 
College Call Girls Vyasarpadi Whatsapp 7001305949 Independent Escort Service
College Call Girls Vyasarpadi Whatsapp 7001305949 Independent Escort ServiceCollege Call Girls Vyasarpadi Whatsapp 7001305949 Independent Escort Service
College Call Girls Vyasarpadi Whatsapp 7001305949 Independent Escort Service
 
Pharmaceutical Marketting: Unit-5, Pricing
Pharmaceutical Marketting: Unit-5, PricingPharmaceutical Marketting: Unit-5, Pricing
Pharmaceutical Marketting: Unit-5, Pricing
 
Asthma Review - GINA guidelines summary 2024
Asthma Review - GINA guidelines summary 2024Asthma Review - GINA guidelines summary 2024
Asthma Review - GINA guidelines summary 2024
 
VIP Call Girls Mumbai Arpita 9910780858 Independent Escort Service Mumbai
VIP Call Girls Mumbai Arpita 9910780858 Independent Escort Service MumbaiVIP Call Girls Mumbai Arpita 9910780858 Independent Escort Service Mumbai
VIP Call Girls Mumbai Arpita 9910780858 Independent Escort Service Mumbai
 
call girls in munirka DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
call girls in munirka  DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️call girls in munirka  DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
call girls in munirka DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
 
Call Girls In Andheri East Call 9920874524 Book Hot And Sexy Girls
Call Girls In Andheri East Call 9920874524 Book Hot And Sexy GirlsCall Girls In Andheri East Call 9920874524 Book Hot And Sexy Girls
Call Girls In Andheri East Call 9920874524 Book Hot And Sexy Girls
 
Call Girl Service Bidadi - For 7001305949 Cheap & Best with original Photos
Call Girl Service Bidadi - For 7001305949 Cheap & Best with original PhotosCall Girl Service Bidadi - For 7001305949 Cheap & Best with original Photos
Call Girl Service Bidadi - For 7001305949 Cheap & Best with original Photos
 
Call Girls Frazer Town Just Call 7001305949 Top Class Call Girl Service Avail...
Call Girls Frazer Town Just Call 7001305949 Top Class Call Girl Service Avail...Call Girls Frazer Town Just Call 7001305949 Top Class Call Girl Service Avail...
Call Girls Frazer Town Just Call 7001305949 Top Class Call Girl Service Avail...
 
Call Girls Hsr Layout Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Hsr Layout Just Call 7001305949 Top Class Call Girl Service AvailableCall Girls Hsr Layout Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Hsr Layout Just Call 7001305949 Top Class Call Girl Service Available
 
Hematology and Immunology - Leukocytes Functions
Hematology and Immunology - Leukocytes FunctionsHematology and Immunology - Leukocytes Functions
Hematology and Immunology - Leukocytes Functions
 
Book Call Girls in Kasavanahalli - 7001305949 with real photos and phone numbers
Book Call Girls in Kasavanahalli - 7001305949 with real photos and phone numbersBook Call Girls in Kasavanahalli - 7001305949 with real photos and phone numbers
Book Call Girls in Kasavanahalli - 7001305949 with real photos and phone numbers
 

135

  • 1. #include<stdio.h> #include<conio.h> #include<dos.h> #include<graphics.h> int initmouse(); void showptr(); void openwindow(); void closewindow(); void hideptr(); void getmousepos(int *,int*,int*); void restrictptr(int,int,int,int); int button,x,y,x1,y1,x2,y2,s; long double num=0,get,num1=0,result=0; long double addnum(int); char opr; int a,b,r,s,i1,count,c,sq,newnum=1,d=0; union REGS i,o; void main() { int driver=DETECT,mode; int q,p[12]; char input; char *inpu[4][4]={"1","2","3","4", "5","6","7","8", "9","0","+","-" , "*","/","clr","="}; char inp[4][4]={'1','2','3','4', '5','6','7','8', '9','0','+','-' , '*','/','l','='}; initgraph(&driver,&mode,"c:tcbgi"); if(initmouse()==0) { printf("not"); getch(); exit(0); } openwindow(); getch(); cleardevice(); setfillstyle(CLOSE_DOT_FILL,10); bar(260,82,450,320); bar(430,70,450,320); setfillstyle(1,GREEN); bar(236,82,432,300); setcolor(GREEN); rectangle(238,50,430,80); rectangle(237,49,431,81); rectangle(236,48,432,82); c=240; d=100; s=0; for(a=0;a<4;a++) { c=240; for(b=0;b<4;b++) { setfillstyle(1,RED); bar(c,d,c+40,d+40); setcolor(YELLOW); outtextxy(c+10,d+14,inpu[a][b]); c+=50; } d+=50;
  • 2. } showptr(); num=0; gotoxy(36,5); printf("%18.1Lf",num); count=0; while(!kbhit()) { outtextxy(30,20,"Press any key to exit.."); i1=0; c=240; d=100; rectangle(0,0,638,478); getmousepos(&button,&x,&y); for(a=0;a<4;a++) { c=240; for(b=0;b<4;b++) { if((x>=c&&x<=c+40)&&(y>=d&&y<=d+40)) { if((button&1)==1) { while((button&1)==1) { setcolor(10); rectangle(c,d,c+40,d+40); rectangle(c-1,d-1,c+41,d+41); rectangle(c-2,d-2,c+42,d+42); break; } delay(100); setcolor(GREEN); rectangle(c,d,c+40,d+40); rectangle(c-1,d-1,c+41,d+41); rectangle(c-2,d-2,c+42,d+42); input=inp[a][b]; switch(input) { case '1': get=addnum(1); gotoxy(36,5); printf("%18.1Lf",get); break; case '2': get=addnum(2); gotoxy(36,5); printf("%18.1Lf",get); break; case '3': get=addnum(3); gotoxy(36,5); printf("%18.1Lf",get); break; case '4': get=addnum(4); gotoxy(36,5); printf("%18.1Lf",get); break; case '5': get=addnum(5); gotoxy(36,5); printf("%18.1Lf",get); break;
  • 3. case '6': get=addnum(6); gotoxy(36,5); printf("%18.1Lf",get); break; case '7': get=addnum(7); gotoxy(36,5); printf("%18.1Lf",get); break; case '8': get=addnum(8); gotoxy(36,5); printf("%18.1Lf",get); break; case '9': get=addnum(9); gotoxy(36,5); printf("%18.1Lf",get); break; case '0': get=addnum(0); gotoxy(36,5); printf("%18.1Lf",get); break; case '+': num1=num; num=0; opr='+'; gotoxy(36,5); printf("%18.1Lf",num); break; case '-': num1=num; num=0; opr='-'; gotoxy(36,5); printf("%18.1Lf",num); break; case '*': num1=num; num=0; opr='*'; gotoxy(36,5); printf("%18.1Lf",num); break; case '/': num1=num; num=0; opr='/'; gotoxy(36,5); printf("%18.1Lf",num); break; case 'l': num=0; num1=0; result=0; count=0; gotoxy(36,5); printf("%18.1Lf",num); break; case '=': switch(opr) {
  • 4. case '+': case '-': if(count<1) { result=num+num1; } else { result=result+num; } gotoxy(36,5); printf("%18.1Lf",result); count+=1; break; if(count<1) { result=num1-num; } else { result=result-num; } gotoxy(36,5); printf("%18.1Lf",result); count+=1; break; case '*': case '/': if(count<1) { result=num1*num; } else { result=result*num; } gotoxy(36,5); printf("%18.1Lf",result); count+=1; break; if(count<1) { result=num1/num; } else { result=result/num; } gotoxy(36,5); printf("%18.1Lf",result); count+=1; break; } } } } c+=50; } d+=50; } setcolor(YELLOW); delay(150); } getch();
  • 5. closewindow(); getch(); } long double addnum(int getnum) { num=num*10+getnum; return(num); } int initmouse() { i.x.ax=0; int86(0x33,&i,&o); return(o.x.ax); } void showptr() { i.x.ax=1; int86(0x33,&i,&o); } void hideptr() { i.x.ax=2; int86(0x33,&i,&o); } void restrictptr(int x1,int y1,int x2,int y2) { i.x.ax=7; o.x.cx=x1; o.x.dx=x2; int86(0x33,&i,&o); i.x.ax=8; o.x.cx=y1; o.x.dx=y2; int86(0x33,&i,&o); } void getmousepos(int *button,int *x,int *y) { i.x.ax=3; int86(0x33,&i,&o); *button=o.x.bx; *x=o.x.cx; *y=o.x.dx; } void openwindow() { int aa,bb,cc,dd,maxx,maxy,i=10; maxx=getmaxx(); maxy=getmaxy(); rectangle(0,0,maxx,maxy); aa=250; bb=400; cc=260; for(dd=250;dd<350;dd+=20) { setfillstyle(1,2); bar(dd,bb,cc,bb+10); cc+=20; } aa=250; bb=400; cc=260; while(!kbhit()) { setcolor(BLUE);
  • 6. outtextxy(20,116,"Press any key to continue......."); if((aa==350)&&(cc==360)) { aa=250; cc=260; continue; } else { setcolor(10); rectangle(aa,bb,cc,bb+10); rectangle(aa-1,bb-1,cc+1,bb+11); } delay(300); setcolor(BLACK); rectangle(aa,bb,cc,bb+10); rectangle(aa-1,bb-1,cc+1,bb+11); aa+=20; cc+=20; } } void closewindow() { int i,j,k; cleardevice(); rectangle(0,0,638,478); k=0; while(!kbhit()) { setcolor(k); settextstyle(5,0,8); outtextxy(100,200,"THANK YOU"); line(90,300,600,300); delay(200); k++; } }
  • 7. outtextxy(20,116,"Press any key to continue......."); if((aa==350)&&(cc==360)) { aa=250; cc=260; continue; } else { setcolor(10); rectangle(aa,bb,cc,bb+10); rectangle(aa-1,bb-1,cc+1,bb+11); } delay(300); setcolor(BLACK); rectangle(aa,bb,cc,bb+10); rectangle(aa-1,bb-1,cc+1,bb+11); aa+=20; cc+=20; } } void closewindow() { int i,j,k; cleardevice(); rectangle(0,0,638,478); k=0; while(!kbhit()) { setcolor(k); settextstyle(5,0,8); outtextxy(100,200,"THANK YOU"); line(90,300,600,300); delay(200); k++; } }