i have done this coding and its can be run.. but if i seperated into, header,implementation and main file its have error. someone plz help how do i seperate this file into (header)shape.h, (implemtation)shape.cpp and (main)testshape.cpp
here is my full coding
#include <iostream>
#include<math.h>
using namespace std;
cout << "Fomula of calculating Area For rectangle is (lenght *Width)"<<endl;
cout << "Fomula of calculating Perimeter For rectangle is (2Width * 2lenght)"<<endl;
cout << " "<<endl;
cout << " Example Rectangle with : "<<endl;
cout << " width = 5"<<endl;
cout << " length = 2"<<endl;
cout << " "<<endl;
cout << " Area of Rectangle: " << recObj.getarea()<< endl;
cout << " Perimeter of Rectangle: " << recObj.perimeter() << endl;}
else if(choice==2){
cout << "Fomula of calculating Diameter For Circle is (2 * radius)"<<endl;
cout << "Fomula of calculating Area For Circle is (3.142 * radius^2)"<<endl;
cout << " "<<endl;
cout << " Example Circle with : "<<endl;
cout << " Radius = 5"<<endl;
cout << " "<<endl;
cout << "Circle Diameter: " <<cirObj.getdiameter()<< endl;
cout << "Circle Area: " <<cirObj.getarea()<< endl;}