I am trying to create a LinkedList in Objective C.
In the .h file I am trying to create a Node using the code:
@interface AALinkedList : NSObject
{
typedef struct Node
{
int data;
struct Node *next;
} Node;
}
This gives me an error saying Type name does not allow storage class to be specified
What does this mean ? and how do I fix it ?
typedef struct Node {
int data;
Node *next;
} Node;
@interface AALinkedList : NSObject
{
Node node;
// or Node *node;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With