Ikd what the error is telling me as when it compiles, no red lines appear. Plz help me >_< !
thanx in advance
#include "stdafx.h"
#include <iostream>
#include <stdlib.h>
using namespace std;
#include "Shapes.h"
#include "ShapeFeatures.h"
int main()
cout << "\n\n\n";
return 0;
}
//Shapes.h
#pragma once
class Shapes
{
public:
void square();
void triangle();
void circle();
private:
ShapeFeatures me;
};
void Shapes::square()
{
me.getSquareArea();
}
void Shapes::triangle()
{
me.getTriangleArea();
}
void Shapes::circle()
{
me.getCircleArea();
}
///ShapeFeatures.h
#pragma once
class ShapeFeatures
{
public:
void getSquareArea();
void getTriangleArea();
void getCircleArea();
private:
int length;
int base;
int height;
double radius;
double pi = 3.14159;
double area;
};
void ShapeFeatures::getSquareArea()
{
area = length*length;
cout << area << endl;
}
void ShapeFeatures::getTriangleArea()
{
area = (base * height) / 2;
cout << area << endl;
}
void ShapeFeatures::getCircleArea()
{
area = pi * radius * radius;
cout << area << endl;
}