Q:

"Function call missing argument list"?

#include <iostream>
#include <iomanip>
#define _USE_MATH_DEFINES       //needed to include the math constants
#include <math.h>
#include <string>               //needed to include texts
using namespace std;

double Volume(double Length, double Width, double Height)
{
    double volume;
    volume = Length*Width*Height; 
    return volume;
}

double Area(double Length, double Width, double Height)
{
    double area;
    area = 2 * Width*Length + 2 * Length*Height + 2 * Height*Width; 
    return area;
}

void DisplayData(double Length, double Width, double Height, double volume, double area)
{
    cout << "For the width " << Width << ", the length " << Length << " and the Height " << Height << "; the volume of the box is " << volume << " and the surface area is " << area << ".";
}

int main()
{
    double Length, Width, Height;

    cout << "Welcome! This program will calculate the volume and surface area of a box. All this program needs is you to input the length, width and height of the box." << endl;
    cout << "Please note that all meausurments are in meters." << endl;
    cout << "Please insert a value for the length: " << endl;
    cin >> Length;
    cout << "Please insert a value for the width: " << endl;
    cin >> Width;
    cout << "Please insert a value for the height: " << endl;
    cin >> Height;
    cout << endl;

    Volume;
    Area;
    DisplayData;

    return 0;
}//end main

I am writing a program with functions but it gives me the error in the title. How exactly do I call functions? I don't really understand that part. Do you just write the name of the function or is there something else involved?

A:

I guess you should call the functions like this
double volume = Volume(Length, Width, Height);
double area = Area(Length, Width, Height);
DisplayData(Length, Width, Height, volume, area);

instead of the three meaningless statements
Volume;
Area;
DisplayData;

