Q:

double-type Assignment Error, C++

I preempt my question with the fact that I started using C++ two days ago.
I get this error: 
"a value of type "double (*)()" cannot be assigned to an entity of type "double""   
My pertinent code:
#include "stdafx.h"
#include <iostream>
#include <string>

using namespace std;

double getInput()
{
    double val1 = 0.00;
    // prompts user for a Double value
    cin >> "Enter a Double value:  " >> val1;

    return val1;
}

Within main() I have the following statements whereby the equals sign is underlined in red and yields the above provided error message.
double var1;
var1 = getInput;

I must be making a silly mistake, as this seems as simple a programming task as they get, but I did preempt my question ;-)  Thanks for any/all help!
Additional Information:

Using Visual Studio 2013 Ultimate 
This is a Console application

A:

getInput is the name of a function. That name by itself refers to the function, but it doesn't call the function. And since a function name is, in most contexts, implicitly converted to a pointer to the function, it becomes an expression of type double (*)(), or "pointer to function (with no parameters) returning double".
To call a function, you need to follow its name with an argument list in parentheses.  If there are no arguments, use empty parentheses.
Change this:
var1 = getInput;

to this:
var1 = getInput();

(There are languages in which parameterless function calls don't use empty parentheses.  C++ isn't one of them.)

