fork download
  1. #ifndef GROUP1
  2. #define GROUP1
  3.  
  4. class Node // rename to singlyLinkedList
  5. {
  6. public:
  7. //constructor
  8. Node(int _val, Node* _next);
  9.  
  10. // inserting/appending
  11. void insert(Node* prev, int value);
  12.  
  13. // prefixing
  14. Node* prefix(int value, Node* next);
  15.  
  16. // searching
  17. Node* searchElem(Node* head,int searchKey);
  18.  
  19. // removing
  20. void remove(Node* prev, Node* target);
  21.  
  22. // getters
  23. int getValue();
  24. Node* getNext();
  25.  
  26. // setters
  27. void setValue(int _value);
  28. void setNext(Node* _next);
  29.  
  30. private:
  31. int value;
  32. Node* next;
  33. };
  34.  
  35. #endif
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/usr/lib/gcc/i486-linux-gnu/4.7/../../../i386-linux-gnu/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty