#include "lab4.h"
#include <iostream>
usingnamespace std;
int main()
{
char repeat;
do
{
labf box;
double rad,heightz,sidez;
int choose;
cout << "Select a shape: " << endl << "1. sphere " << endl << "2. cube " << endl << "3. cylinder";
cin >> choose;
switch(choose)
{
case 1 : cout << "Enter the radius of a sphere: ";
cin >> labf.setradius(rad);
box.calcvols(); break;
case 2 : cout << "Enter the side of a cube: ";
cin >> labf.setside(sidez);
box.calcvolc(); break;
case 3 : cout << "Enter the height of a cylinder: ";
cin >> labf.setheight(heightz);
cout << "Enter the radius of a cylinder: ";
cin >> labf.setradius(rad);
box.calcvolr(); break ;
}
cout << "Do you wish to continue? y or w and ENTER to continue: ";
cout << endl;
}while (repeat == 'y' || repeat =='w');
}
Add at the top of the header the directive #pragma_once if it is still complaining show us the error message because I don't have an IDE opened I might have missed something