程序奇怪的输出
答
正在打印的地址的功能。
我想你想打电话的功能和打印他们的返回值。
试试这个
cout << "\nThe surface area of the prism is: " << calculateSurfaceArea(length, width, height) << endl;
cout << "The volume of the prism is: " << calculateVolume(length, width, height) << endl;
代替
cout << "\nThe surface area of the prism is: " << calculateSurfaceArea << endl;
cout << "The volume of the prism is: " << calculateVolume << endl;
+0
完美!谢谢!我是一个初学者,正在为功能而努力。同样抱歉再次发布代码作为图片。 –
不要发布您的代码为图像。请直接在您的问题中将您的代码作为文本发布。 – MikeCAT
请在问题和您的输出中张贴代码。 –
我的歉意,第一次使用这个网站。 –