Combination of Personal Knowledge Management and Learning Management System. This is a study project aimed at creating relatively big codebase for object-oriented programming and similar courses.
Create a templated base class for collections with methods:
void add(T item) - to add element
bool remove(size_t index) - to remove an element, returns true if successfully deleted and false otherwise
T get(size_t index) (or operator[]) - to get element using index
size_t size() - to get size of the collection.
T - is a type of elements to be stored in a collection.
At least operator[] should probably return T& (reference to element) - this would allow changing items, not just accessing them (this is similar to how collections in C++ standard library work)
Create a templated base class for collections with methods: void add(T item) - to add element bool remove(size_t index) - to remove an element, returns true if successfully deleted and false otherwise T get(size_t index) (or operator[]) - to get element using index size_t size() - to get size of the collection. T - is a type of elements to be stored in a collection.