i have a very simple program and i'm running into a
"error C2228: left of '.calcArea' must have class/struct/union type" error.
i've tried messing with different naming conventions and such...but here's my code:
that last cout line is where i get the error.
void calcArea (int, int);
void setParams (int, int);
//class cube: public square
// int depth;
// CubeConstructor ();
// CubeConstructor (int, int, int);
// int calcVolume (int, int, int);
length = 0;
height = 0;
void square::setParams (int len1, int ht1)
length = len1;
height = ht1;
void square::calcArea (int len1, int ht1)
extern void main ()
cout << "Please enter the length of your square: " << endl;
cin >> len1;
cout << "Please enter the height of your square: " << endl;
cin >> ht1;
cout << "The area of your square is: "<< SquareCon.calcArea << endl;
any help would do wonders!