From e90e0c990f9c3f90c3200d60f8f12d7213beadb5 Mon Sep 17 00:00:00 2001 From: William Bracho Blok Date: Tue, 15 Sep 2015 21:03:01 -0500 Subject: [PATCH] Update Relation.h --- Relation.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Relation.h b/Relation.h index 8668481..6f69bfa 100644 --- a/Relation.h +++ b/Relation.h @@ -21,7 +21,16 @@ public: att = a; } - void addTuple(vector< Attribute> tuple); + void addTuple(vector tuple) + { + else + { + for(int i = 0; i < att.size(); ++i) //for all the attributes + { + att[i].pushBack(tuple[i]); + } + } + } void display() {