Library 2

0 errors in simpletest
This commit is contained in:
Alessandro Ferro
2021-04-19 15:44:27 +02:00
parent 15e341a6a0
commit 3fdd2e86cb
5 changed files with 18 additions and 23 deletions

View File

@ -12,13 +12,13 @@ QueueVec<Data>::QueueVec(){
template <typename Data>
QueueVec<Data>::QueueVec(const LinearContainer<Data>& linear){
size = linear.Size();
Elements = new Data[size+1]; //forse da espandere
size = linear.Size()+1;
Elements = new Data[size]; //forse da espandere
for(ulong i=0 ; i<linear.Size() ; ++i){
Elements[i] = linear[i];
}
front = 0;
rear = size; // the vector will be full
rear = size-1; // the vector will be full
}
template <typename Data>