I have C# background and been working with C# for so many years.. Recently, I'm learning C++ and having some difficulties..
Basically, I'm trying to create the linked link class as below. I want to use my class as a data in struct node.
How can I fix this in C++? Thanks.
But it said that i can't use like that.
class Polynomial{
    public:
        Polynomial(pair<double, int>);  
        void add(Polynomial);
        Polynomial multiply(Polynomial);
        void print();
    private:
         struct node
         {
            Polynomial data;
            node *link;
         }*p;
};
 
     
     
     
     
    