Update test.cpp
This commit is contained in:
parent
6fa6ad2b44
commit
560e345828
1 changed files with 60 additions and 3 deletions
57
test.cpp
57
test.cpp
|
@ -1,10 +1,67 @@
|
|||
/*
|
||||
#include <iostream>
|
||||
#include "DBEngine.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
|
||||
|
||||
//DBEngine engine;
|
||||
vector<string> my_vector = {"Name", "Grade", "Happiness"};
|
||||
string at1 = "Name", at2 = "Grade", at3 = "Happiness";
|
||||
|
||||
|
||||
Attribute<string> attribute_1(at1);//, attribute_2(at2), attribute_3(at3);
|
||||
|
||||
|
||||
//Relation r(line1, my_attributes);
|
||||
|
||||
//r.displayTableName();
|
||||
*/
|
||||
|
||||
#include <iostream>
|
||||
//#include "DBEngine.h"
|
||||
#include <vector>
|
||||
#include "Attribute.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
|
||||
/*
|
||||
DBEngine engine;
|
||||
Relation r;
|
||||
Attribute<int> a;
|
||||
*/
|
||||
|
||||
vector<string> shamWow;
|
||||
shamWow.push_back("rag");
|
||||
shamWow.push_back("sponge");
|
||||
shamWow.push_back("wooow");
|
||||
shamWow.push_back("cloth");
|
||||
|
||||
Attribute atributo;
|
||||
atributo.initializeAttribute("atributo",shamWow);
|
||||
atributo.display();
|
||||
|
||||
vector<string> doom;
|
||||
doom.push_back("zombieman");
|
||||
doom.push_back("revenant");
|
||||
doom.push_back("imp");
|
||||
doom.push_back("archvile");
|
||||
|
||||
Attribute atributo2;
|
||||
atributo2.initializeAttribute("attribute_2", doom);
|
||||
atributo2.display();
|
||||
|
||||
|
||||
|
||||
|
||||
string line1 = "Table_1";
|
||||
|
||||
|
||||
|
||||
//Relation r(line1, my_attributes);
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue