程序奇怪的输出

问题描述:

我已经写了下面的代码,但输出沿着011512EE的行显示奇怪的值。我不知道这是从哪里来的,或者如何解决它。程序奇怪的输出

code

+6

不要发布您的代码为图像。请直接在您的问题中将您的代码作为文本发布。 – MikeCAT

+0

请在问题和您的输出中张贴代码。 –

+0

我的歉意,第一次使用这个网站。 –

正在打印的地址的功能

我想你想打电话的功能和打印他们的返回值

试试这个

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

完美!谢谢!我是一个初学者,正在为功能而努力。同样抱歉再次发布代码作为图片。 –