lasd/librerie/exercise3/zmytest/test.hpp

46 lines
974 B
C++
Raw Normal View History

2021-04-24 16:58:05 +02:00
#ifndef MYTEST_HPP
#define MYTEST_HPP
#include"../vector/vector.hpp"
#include"../list/list.hpp"
#include"../queue/queue.hpp"
#include"../queue/lst/queuelst.hpp"
#include"../queue/vec/queuevec.hpp"
#include"../stack/stack.hpp"
#include"../stack/lst/stacklst.hpp"
#include"../stack/vec/stackvec.hpp"
#include"../iterator/iterator.hpp"
#include"../binarytree/binarytree.hpp"
#include"../binarytree/lnk/binarytreelnk.hpp"
#include"../binarytree/vec/binarytreevec.hpp"
#include<iostream>
using namespace std;
2021-05-05 22:37:45 +02:00
using namespace lasd;
2021-04-24 16:58:05 +02:00
/* ************************************************************************** */
void menu(){
2021-05-05 22:37:45 +02:00
cout<<"MY TESTS\n";
Vector<string> vec(10);
vec[0] = "A";
vec[1] = "B";
vec[2] = "C";
vec[3] = "D";
vec[4] = "E";
vec[5] = "F";
vec[6] = "G";
vec[7] = "H";
vec[8] = "I";
vec[9] = "L";
BinaryTreeLnk<string> bt1(vec);
BinaryTreeLnk<string> bt2(vec);
2021-05-06 19:46:16 +02:00
if(bt1 == bt2) cout<<"uguali";
else cout<<"NON UGUALI!";
}
2021-04-24 16:58:05 +02:00
#endif