Update Relation.h
This commit is contained in:
parent
b2fa6c1a55
commit
e90e0c990f
1 changed files with 10 additions and 1 deletions
11
Relation.h
11
Relation.h
|
@ -21,7 +21,16 @@ public:
|
|||
att = a;
|
||||
}
|
||||
|
||||
void addTuple(vector< Attribute> tuple);
|
||||
void addTuple(vector<string> tuple)
|
||||
{
|
||||
else
|
||||
{
|
||||
for(int i = 0; i < att.size(); ++i) //for all the attributes
|
||||
{
|
||||
att[i].pushBack(tuple[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void display()
|
||||
{
|
||||
|
|
Reference in a new issue