Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 752 results for
cylinder
- Page 1
Re: ‘Advanced AI should be treated similar to Weapons of Mass Destruction’
Community Center
1 Month Ago
by rproffitt
UPDATE: Feb 4, 2025 — Google on Tuesday updated its ethical guidelines around artificial intelligence, removing commitments not to apply the technology to weapons or surveillance.
Cylinder surface, area, height etc etc
Programming
Software Development
20 Years Ago
by Hjcooke
… System.out.print("Please enter radius of
cylinder
: "); radius = MyInput.readDouble(); System.…out.print("Please enter length of
cylinder
: "); length = MyInput.readDouble(); System.out.print…
Re: Cylinder surface, area, height etc etc
Programming
Software Development
20 Years Ago
by Hjcooke
As well as calculating the volume of the
cylinder
which is already in this sample of code, i have to calculate the surface area, set the height, set the radius of the base, and set the center of the base.
Help: C++ Cylinder class
Programming
Software Development
14 Years Ago
by CanaznFTW
… double PI = 3.14159; // Constructors
Cylinder
::
Cylinder
() { radius = 0; height = 0; }
Cylinder
::
Cylinder
(double r, double h) { radius =… ***Header*** [CODE] using namespace std; class
Cylinder
{ public: // Constructors
Cylinder
();
Cylinder
(double r, double h); // Accessors double getRadius…
Re: Help: C++ Cylinder class
Programming
Software Development
14 Years Ago
by Caligulaminus
I think you should recheck your area() function. You are definitely not calculating the
cylinder
's surface area that way.
Re: Help: C++ Cylinder class
Programming
Software Development
14 Years Ago
by CanaznFTW
Ah I do see the issue. I was too worried in trying to compile the program that I kind of just did that. Thank you for pointing that out. Should look something more like this: [CODE]
Cylinder
:area() { return 2 * PI * radius * radius + 2 * PI * radius * height; } [/CODE]
output got problem ..derived class cylinder ...Please hlp fix a bit problem
Programming
Software Development
12 Years Ago
by jimmy.teohmingsiong
… >> r; circle.setRadius(r); circle.print(); cylinderType
cylinder
; double h; cout << "Enter the height …of the
cylinder
: "; cin >> h;
cylinder
.setHeight(h);
cylinder
.print(); system("pause"); return…
Re: output got problem ..derived class cylinder ...Please hlp fix a bit problem
Programming
Software Development
12 Years Ago
by NathanOliver
you need to modify your
cylinder
class to take in the radius and than pass that to the circle class that makes up the
cylinder
class.
Cylinder
::
Cylinder
(int h, int r) : Circle(r) { height = h; }
Re: output got problem ..derived class cylinder ...Please hlp fix a bit problem
Programming
Software Development
12 Years Ago
by np complete
…()` are of circle class, and you are using them in
cylinder
class, you might want to write separate functions for both… see, you will realize that when `getRadius()` is called in
Cylinder
class, it has value 0. And never use `system("…
Re: output got problem ..derived class cylinder ...Please hlp fix a bit problem
Programming
Software Development
12 Years Ago
by jimmy.teohmingsiong
oo so i still need to create a getRadius() on class
cylinder
??
Re: output got problem ..derived class cylinder ...Please hlp fix a bit problem
Programming
Software Development
12 Years Ago
by np complete
You can code setHeight() such that it takes the height and radius, from the circle part. `
cylinder
.setHeight(h, r)`.
Intersection with cylinder endcaps
Programming
Software Development
14 Years Ago
by Valaraukar
… failing me :( Anyway....I have a
cylinder
object in 3D space and inside of the
cylinder
I have line objects originating at…,0,0) (which is also the centre point of the
cylinder
). I would like to find the exact point of intersection… a line crosses either of the end-caps of the
cylinder
but I'm not sure how to do this.... I…
C++ Cylinder Code
Programming
3 Years Ago
by SylveeAshley
…writing a program that calculates the volume of a
cylinder
when you input the diameter and height, using the…diameter,height,volume; cout<<"Enter Diameter of
Cylinder
: "; cin>>diameter; cout<<…;"Enter Height of
Cylinder
:"; cin>>height; volume=1/4*…
Re: C++ Cylinder Code
Programming
3 Years Ago
by rproffitt
…height,volume; cout<<"Enter Diameter of
Cylinder
: "; cin>>diameter; cout&…lt;<"Enter Height of
Cylinder
:"; cin>>height; volume=1…diameter); cout<<"Volume of
Cylinder
is : " <<volume; return 0; }
Re: C++ Cylinder Code
Programming
3 Years Ago
by Husoski
…,height,volume; cout << "Enter Diameter of
Cylinder
: "; cin >> diameter; cout <…;< "Enter Height of
Cylinder
:"; cin >> height; volume = PI / …<< "Volume of
Cylinder
is : " <<volume; return 0; }
Re: PHP functions needs for my cylinder?
Programming
Web Development
11 Years Ago
by diafol
… public abstract function getArea(); public abstract function getVolume(); } class
Cylinder
extends Shape { public $areaFunction = '2πrh'; …rad = 5; $ht = 6; $sphereRad = 13.55; $c = new
Cylinder
($rad,$ht); $s = new Sphere($sphereRad); echo "Area of…
calculate the volume and area of cylinder
Programming
Software Development
10 Years Ago
by shahzrinsaid
…() and CylinderArea(). Both functions should receive diameter and height of
cylinder
as parameters. Each function should return the volume and area… respectively to main program. Given formula:
Cylinder
volume, v=πr2h
Cylinder
area, a=2π2r+2πrh where π is…
area and volume occupied by a cylinder
Programming
Software Development
10 Years Ago
by supermastereu
…;\n ===========Calculate the total area and volume occupied by a
cylinder
============\n"); printf("\n the base radius.......: "); scanf…("%f", &r); printf("\n
Cylinder
height.: "); scanf("%f", &h); At = ((2…
Re: area and volume occupied by a cylinder
Programming
Software Development
10 Years Ago
by David W
…;\n========Total surface area and " "volume of a
cylinder
========\n"); radius = takeInFltMin( "\nThe base radius.......: ", 0… = %.2e and height = %.2e ...\n", r, h ); printf( "
Cylinder
surface area = %.2e\n", surfaceArea ); printf( "…
Re: Intersection with cylinder endcaps
Programming
Software Development
14 Years Ago
by ravenous
I'm assuming that the
cylinder
is oriented with its axis along the z-axis of …
PHP functions needs for my cylinder?
Programming
Web Development
11 Years Ago
by tony75
… PHP functions for calculating the area and volume of a
cylinder
? I will be thankfull for your answer. <form action…; </form> <?php //calculates the volume of a
cylinder
//Volym = π r2 h function volumeCylinder($r,$h) { $pi = 3.141592653589…
Re: calculate the volume and area of cylinder
Programming
Software Development
10 Years Ago
by <M/>
…-in.blogspot.com/2012/06/how-to-determine-volume-of-
cylinder
.html http://www.cplusplus.com/forum/beginner/52102/ http://www…
Pneumatic Cylinder?
Community Center
Geeks' Lounge
9 Years Ago
by mmcdonald
… issue is, I don't think it's a pneumatic
cylinder
that I'm looking for as their bore is quite… of the component I'm looking for? The description: a
cylinder
shaped device that extends in a single direction that can…
Re: PHP functions needs for my cylinder?
Programming
Web Development
11 Years Ago
by tony75
Thanks diafol It’s working very fine now. Can you give me some tip how can I solve
cylinder
Area? Is it right? area = 2 π r h -> area= 2 * pi * r2 + 2 + pi * radius * height ? should I have also two parameter i function areaCylinder($r,$h) ?
Cuboid and Cylinder
Programming
Software Development
20 Years Ago
by chound
This programme can find the dimensions of cuboid and
cylinder
. In cuboids it can find missing dimensions also. Eg. if length is missing and volume is given it will find the length.
What SSD should I get for replacement of old cylinder HDD (sata 2)?
Hardware and Software
Hardware
13 Years Ago
by headcracker
What SSD should I get for replacement of old
cylinder
HDD (sata 2) for Intel Centrino laptop in terms of …
Re: Cylinder surface, area, height etc etc
Programming
Software Development
20 Years Ago
by server_crash
what exactly are you needing help with?
Re: Cylinder surface, area, height etc etc
Programming
Software Development
20 Years Ago
by server_crash
When you say that you want to set the radius and stuff, do you mean that you want user input?
Re: Cylinder surface, area, height etc etc
Programming
Software Development
20 Years Ago
by Hjcooke
Yes, so that all of the other calculations that are being asked work as well ans coinsine with each other.
Re: Help: C++ Cylinder class
Programming
Software Development
14 Years Ago
by jonsca
[quote]- Compiling in Terminal [/quote] What is the command you are using to compile? You need to put both .cpp files in the command. [icode] g++ myclass.cpp mymain.cpp -o myprogram [/icode] (assuming you're using gcc).
1
2
3
13
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC