diff --git a/librerie/exercise2/main b/librerie/exercise2/main index 852a440..8fee996 100755 Binary files a/librerie/exercise2/main and b/librerie/exercise2/main differ diff --git a/librerie/exercise2/queue/vec/queuevec.cpp b/librerie/exercise2/queue/vec/queuevec.cpp index 994e16f..1087e79 100755 --- a/librerie/exercise2/queue/vec/queuevec.cpp +++ b/librerie/exercise2/queue/vec/queuevec.cpp @@ -12,13 +12,13 @@ QueueVec::QueueVec(){ template QueueVec::QueueVec(const LinearContainer& 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 diff --git a/librerie/exercise2/zmytest/test.cpp b/librerie/exercise2/zmytest/test.cpp index 7b64da3..8b1375e 100755 --- a/librerie/exercise2/zmytest/test.cpp +++ b/librerie/exercise2/zmytest/test.cpp @@ -37,13 +37,21 @@ void menu(){ - QueueLst q2; - q2 = std::move(q1); + // QueueLst q2; + // q2 = std::move(q1); + // + // q2.HeadNDequeue(); + // q2.HeadNDequeue(); + // q2.HeadNDequeue(); + // q2.HeadNDequeue(); + // q2.HeadNDequeue(); - q2.HeadNDequeue(); - q2.HeadNDequeue(); - q2.HeadNDequeue(); - q2.HeadNDequeue(); - q2.HeadNDequeue(); + + QueueVec quevec; + quevec.Enqueue(0); + quevec.Enqueue(1); + QueueVec newquevec = quevec; + + if(quevec == newquevec) std::cout<<"uguali"; } diff --git a/teoria/a.out b/teoria/a.out deleted file mode 100755 index 110d3d3..0000000 Binary files a/teoria/a.out and /dev/null differ diff --git a/teoria/prova.cpp b/teoria/prova.cpp deleted file mode 100644 index af7599f..0000000 --- a/teoria/prova.cpp +++ /dev/null @@ -1,13 +0,0 @@ -#include -using namespace std; -ulong Size(){ - ulong a = 6; - return a; -} -int main(){ - ulong j = Size(); - cout<=0 ; --x){ - cout<