A test project for a Junior C++ Developer at "Ventor" company
The task was:
- We need to implement Queue class, using given class declaration.
- When we creating a "Queue" object, the initial size must be specified.
- Queue "hData" must be allocated as an inline memory block.
- A "Head" must be an index of the most recent data we have added.
- A "Tail" must point to the end of data.
- By calling "Put" function we must move the "Head" and return the size of data transfered.
- By calling "Clear" function we must move the "Tail" and return the size of data cleared.
- The Queue must be a "Circular Queue", so there must be overflow contorl system (if the "Head" will meet the "Tail")