copy arraylistdemo for linked list
This commit is contained in:
22
c_os/user/demo/LinkedListDemo.h
Normal file
22
c_os/user/demo/LinkedListDemo.h
Normal file
@ -0,0 +1,22 @@
|
||||
#ifndef __LinkedListDemo_include__
|
||||
#define __LinkedListDemo_include__
|
||||
|
||||
#include "kernel/Globals.h"
|
||||
#include "kernel/threads/Thread.h"
|
||||
#include "user/lib/LinkedList.h"
|
||||
|
||||
class LinkedListDemo : public Thread {
|
||||
private:
|
||||
LinkedListDemo(const LinkedListDemo& copy) = delete;
|
||||
|
||||
LinkedList<int> list;
|
||||
|
||||
public:
|
||||
LinkedListDemo() {
|
||||
kout << "Initialized LinkedListDemo" << endl;
|
||||
}
|
||||
|
||||
void run() override;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user