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