Hey,
I'm writing a simple program that finds the volume of a cylinder, but I keep getting a strange error message: 1>.\Volume.cpp(6) : error C2447: '{' : missing function header (old-style formal list?)
Here's the code:
Code:
#include<iostream>
using namespace std;
int main ();
{
int radius, height, volume;
cout << "Enter the radius..." << '\n' << endl;
cin >> radius;
cout << '\n' << "Enter the height..." << '\n' << endl;
cin >> height;
volume = 3.1415 * r * r * h;
cout << '\n' << "The volume is " << volume << endl;
return (0);
}
Hope someone can help...thanks.