Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

declare a structer in cpp

// Definition for singly-linked list.
struct SinglyListNode {
    int val;
    SinglyListNode *next;
    //Constructor
    SinglyListNode(int x) : val(x), next(NULL) {}
};
Source by anassbelcaid.github.io #
 
PREVIOUS NEXT
Tagged: #declare #structer #cpp
ADD COMMENT
Topic
Name
6+6 =