Create Calculator in Turbo C and C++

#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#define MAX_LONG 2147483647
#define PI 3.1415926536

char buf[80];
void output(char *);
void OUTPUT(long double &);

REGS in_regs,out_regs;
init_mouse(){
in_regs.x.ax = 0;
int86(0x33,&in_regs,&out_regs);
return out_regs.x.ax;
}
void show_mouse(){
in_regs.x.ax = 1;
int86(0x33,&in_regs,&out_regs);
}
int mouse_press(){
in_regs.x.ax = 3;
int86(0x33,&in_regs,&out_regs);
return(out_regs.x.bx);
}
..................................

Download Full Source Code Here

Coded by: Iech Setha

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: