consolidate all repos to one for archive
This commit is contained in:
25
semester_2/programiranje_2/primeri/Example28/Node.h
Normal file
25
semester_2/programiranje_2/primeri/Example28/Node.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef EXAMPLE28_NODE_H
|
||||
#define EXAMPLE28_NODE_H
|
||||
|
||||
class Node {
|
||||
private:
|
||||
int data;
|
||||
Node* ptrNext;
|
||||
public:
|
||||
Node() : data(0), ptrNext(nullptr) {
|
||||
}
|
||||
~Node() {
|
||||
}
|
||||
int getData() {
|
||||
return data;
|
||||
}
|
||||
Node* getNext() {
|
||||
return ptrNext;
|
||||
}
|
||||
void set(int d, Node* n) {
|
||||
data=d;
|
||||
ptrNext=n;
|
||||
}
|
||||
};
|
||||
|
||||
#endif //EXAMPLE28_NODE_H
|
||||
Reference in New Issue
Block a user