Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

Correct and Final Solution of Assignment No.3 Of CS201 Due Date 14 Jan 2013 Solved by Waqas Rasheed

Views: 4297

Replies to This Discussion

Solution Uploded...

bhai ji where ix solution

solution  ap ko  nazar nahi araha...?

JPG, GIF, TFC and image formats yaha nazar nhi aty mery dost. Itna bhi nahi pata aap ko

 

es se pehely jitney b solution hien wo sab ghalat hien.. ye theeek hai 100%. es mai new k sath dynamically memory alloacte ke gae hai.

thx dear

31 errors in file

ap theek se write karen ge to error nai ae ge..

#include<iostream.h>

#define PI 3.14

class Circle
{
public:
double radius;
Circle();
Circle(double);
double calculateArea(double);
double calculateCircum(double);
void display();
};

Circle::Circle()
{
radius = 0;
}

Circle::Circle(double r)
{
radius = r;
}
double Circle::calculateArea(double r)
{
return (PI*r*r);
}

double Circle::calculateCircum(double r)
{
return (2*PI*r);
}

void Circle::display()
{
cout "Radius of the Circle is " Circle::radius endl;
cout "Area of the Circle is " calculateArea(Circle::radius) endl;
cout "Circumference of the Circle is " calculateCircum(Circle::radius) endl endl;
}

main()
{
Circle circle1;
Circle circle2(3.5);
circle1.display();
circle2.display();
system("pause");
}

I don't need the solution you are giving.

ap ko dey b nahi raha koe..

mera thk h???

RSS

Looking For Something? Search Below

Latest Activity

VIP Member Badge & Others

How to Get This Badge at Your Profile DP

------------------------------------

Management: Admins ::: Moderators

Other Awards Badges List Moderators Group

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service