Basic C++ question from a novice programmer
<p>I am a novice C++ programmer and am trying to work on a school lab. Below, I have pasted the shell of a program that I am working on. In main, I am instantiating the object <code>car1</code> which belongs to the <code>class Velocity</code>. When I try to use this instantiation with the function <code>mpsConverter</code>, I get an error indicating that the expression must have a class type. We have done similar examples in class and this format worked fine. Any ideas? If this is not the appropriate forum for simple questions like this, please point me in the right direction to a more appropriate one.</p>

<p>Thanks, Al </p>

<pre><code>// P1_2.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include &lt;iostream&gt;
#include "conio.h"
using namespace std;

class Velocity
{
    private:
        int mpsInput;       // input value: meters per second (mps)
        int kmphInput;      // input value: km per hour
        int mphOutput;      // output value: comverted value of km per hour to miles per hour (mph) 
    public:
        int kmphOutput;     // output value: converted value of mps to km per hour
        Velocity();             
        void mpsConverter(int speedKmph);
        void mphConverter();
        ~Velocity();
};

Velocity::Velocity()        // Constructor
{
    cout &lt;&lt; "The initial is text is displayed when an object in the class Velocity is Instantiated." &lt;&lt; endl;
}

void Velocity::mpsConverter(int speedKmph)      // convert KM per hour into meters per second (mps)
{
    kmphOutput = (speedKmph * 2); 
}

void Velocity::mphConverter()       // convert KM per hour into miles per hour (mph)
{

}

Velocity::~Velocity()       // Destructor
{

}

int main()
{
    Velocity car1();
    car1.mpsConverter(2);
    getch();
    return 0;
}
</code></pre>
