I am looking to access private date members in this struct . The original question i am trying to solve asks
A character string can be implemented as a linked list of characters . Implement a C++ ADT called Newstring that uses linked listto implement the following string operations:


Can anye explain how i can access char item2 or use the pointer to?
here is my code that i am trying to start out with. Is this where i want to start out?



Code:
#include<iostream>
using namespace std;

struct node
{
       char item;
       node *next;
       
       private:
       char item2;
       char *p;
       
      
       
};



int main(){
    
    
    system("pause");
    
    
    return 0;
}