#include <cmath>
#include <iomanip>
using namespace std;
#define PI 3.14 //definig the macro for PI
class circle //declaration of the class
{
private:
public: //radius objects are public
float radius;
circle();
circle(float);
float circlearea(float);
float circlecircumference(float);
void display();
};
circle::circle()
{
radius=0;
}
circle::circle(float i)
{
radius=i;
}
float circle::circlearea (float i)
{
return (PI*i*i);
}
float circle::circlecircumference (float i)
{
return (2*PI*i);
}
void circle::display()
{
cout<<"radius of the circle is="<<circle::radius<<endl;
cout<<"Area of the circle is=" <<circlearea(circle::radius)<<endl;
cout<<"circumference of the circle is "<<circlecircumference(circle::radius)<<endl;
}
main()
{
circle circle1;
circle circle2(3.5);
circle1.display();
circle2.display();
}
// Dear Sir i m having the problem in th compilation of the some problem like 61 C:\Dev-Cpp\include\c++\3.4.2\mingw32\bits\c++config.h `<type error>' is not a namespace why
Aoa,
can any one send me the solution of the assignment 3 of the cs 201i wrote the program but it is not being compiled any one correct my program i am attaching the file with this email
thanks,
On Fri, Jun 10, 2011 at 9:46 AM, mc090405544 Muhammad Tufail <mc090405544@vu.edu.pk> wrote:
plz send me the final term paper solved with reference its urgent bcoz
my mid result is very bad so i need it urgent
subjects are:
CS201,
CS403,
CS610,
CS615
--
We say, "Be one as Pakistani Nation and grow up for Pakistan's Future". Wish you all the best. Join www.vuaskari.com,
To post to this group, send email to vuaskari_com@googlegroups.com
Visit these groups:
This (Main) Group:http://groups.google.com/group/vuaskari_com?hl=en?hl=en
MIT/MCS Group: http://groups.google.com/group/vu_askarimit?hl=en?hl=en
HRM Group: http://groups.google.com/group/askari_hrm?hl=en?hl=en
Banking Group: http://groups.google.com/group/askari_banking?hl=en?hl=en
Management: https://groups.google.com/group/vuaskari_mgt?hl=en
Marketing: https://groups.google.com/group/vuaskari_mkt?hl=en
MIS Group: http://groups.google.com/group/askari_mis?hl=en
--
Tahir Hussain
We say, "Be one as Pakistani Nation and grow up for Pakistan's Future". Wish you all the best. Join www.vuaskari.com,
To post to this group, send email to vuaskari_com@googlegroups.com
Visit these groups:
This (Main) Group:http://groups.google.com/group/vuaskari_com?hl=en?hl=en
MIT/MCS Group: http://groups.google.com/group/vu_askarimit?hl=en?hl=en
HRM Group: http://groups.google.com/group/askari_hrm?hl=en?hl=en
Banking Group: http://groups.google.com/group/askari_banking?hl=en?hl=en
Management: https://groups.google.com/group/vuaskari_mgt?hl=en
Marketing: https://groups.google.com/group/vuaskari_mkt?hl=en
MIS Group: http://groups.google.com/group/askari_mis?hl=en
No comments:
Post a Comment
PLEASE COMMENT ABOUT YOUR VISIT AND MY SITE
Note: Only a member of this blog may post a comment.