Okay, I am making a program for my brother, but I can seem to handle the objects like I want. So, I was wondering if any of you guys/girls could assist me. This is what I have so far, I have highlighted the problem in red, and the errors are at the bottom of post thank you for any assistance.
Code:
#include <iostream>
#include <windows.h>
#include <mmsystem.h>
#include <string>
#include <deque>
#include <map>

using namespace std;
class file_i {
    public:
    file_i();
    ~file_i();

    virtual void setupF() const = 0;
    private:
    string files[20];
};

file_i::file_i() {
    //
};

file_i::~file_i() {
    //
};

class player : private file_i
{
    public:
    player();
    ~player();

    virtual void setupF() const {
        //
    }

    private:
    deque<string> names;
    deque<int> s_num;
    map<int, string> manage;
};

player::player() {
    file_i* p_one = new player;  //this works but is the cause of error, with //delete
};

player::~player() {
    delete p_one;   this is line 48
};


int main()
{

}
this is the error
Code:
error: 'p_one' undeclared ( first use of this function ) Line 48
yet again thank you for assistance