Pages

Tuesday, December 20, 2011

Aknowledgment for Projects

 

 

                                        clip_image001

 

I am indebted to my computer science teacher Mr ………. for all the support and encouragements he showered on my project. I sincerely thank her for teaching me every bit of programming that I know today. He is a great source of inspiration and guidance. I also feel privileged to be a part of Engineering College which has always provided its student with the best of tools to bring out the geniuses in every one of us.

Tuesday, October 11, 2011

6.Operator Overloading

WAP USING OPERATOR OVERLOADING TO ENTER RECTANGULAR CO-ORDINATES AND CONVERT THEM INTO POLAR CO-ORDINATES & VICE-VERSA





#include<conio.h>
#include<iostream.h>
#include<math.h>
class rec;
class polar
{
float rad,ang;
public:
polar()   //without default constructor they is an error message
{         //couldnot find a match for polar::polar()
}

5.Operator Overloading

WAP USING OPERATOR OVERLOADING TO ENTER THE MEMORY IN BYTES AND CONVERT THEM INTO MB,KB & BYTES


#include<iostream.h>
#include<conio.h>
class memory
{
long int b,kb,mb;
public:
memory(long int d)
{
b=d%1024;
d=d/1024;
kb=d%1024;
d=d/1024;
mb=d%1024;
}