I am trying to create a program that calculates the area perimeter distance ect of a pool and you enter the number of corners and the co-ords of each corner. I am trying to do thr first section called obtain but its not working in the main function D: I don't know what to do!! I've checked loads of online tutorials and my own notes but im at a loss please help!
#include <iostream>
#include <cmath>
using namespace std;
class Pool
{
private:
int x[100];
int y[100];
int c;
int depth;
int i;
public:
void Obtain(void);
};
void Pool::Obtain()
{
int x[100], y[100], depth, c, i, N;