Someone please help me with this code its in java and I only know c++ please convert this for me or suggest me a good java to c++ converter. Thanks in advance
// Exercise 9.10 Solution // Test.java // Driver for point, circle, cylinder program import javax.swing.*;
public class Test { public static void main( String args[] ) { Cylinder cylinder = new Cylinder( 10, 3.3, 10, 10 ); String result = "";
result += cylinder.getCPointName() + ": " + cylinder.getCPointString();
result += "\n" + cylinder.getCircleName() + ": " + cylinder.getCircleString();
result += "\n" + cylinder.getName() + ": " + cylinder.toString();
result += "\n" + cylinder.getCPointName() + ": " + cylinder.getCPointString();
result += "\n" + cylinder.getCircleName() + ": " + cylinder.getCircleString(); result += "\n" + "Area = " + cylinder.getCircleArea();
result += "\n" + cylinder.getName() + ": " + cylinder.toString(); result += "\n" + "Area = " + cylinder.area(); result += "\n" + "Volume = " + cylinder.volume();