Do you see it? Multi Declaration
Apr 17, 2013 at 3:00am Apr 17, 2013 at 3:00am UTC
Multiple Types in one declaration error...I cant see it can anyone else. And maybe a deeper explanation of the error. I understand the meaning, just dont see where i've done it
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
#include<string>
#ifndef LINKEDLIST_H
#define LINKEDLIST_H
struct Node{
int data;
Node * next;
}
class LinkedList
{
public :
LinkedList();
LinkedList(std::string);
virtual ~LinkedList();
void add(int );
int remove();
void clear();
int peek();
bool isEmpty();
private :
std::string studentName;
Node * headPointer;
};
#endif
Apr 17, 2013 at 3:09am Apr 17, 2013 at 3:09am UTC
You forgot a semicolon after declaration of struct Node
Topic archived. No new replies allowed.