main
Micke Nordin 2 years ago
parent 690228e9ea
commit 97a4d8e0ab
Signed by: micke
GPG Key ID: 014B273D614BE877

@ -32,7 +32,8 @@ public:
~vector() {
this->dimention = 0;
free(this->entries);
this->entries = NULL;
//this->entries = NULL;
this->err = true;
}
long long get_dimention() const { return this->dimention; }
cnumber *get_entries() const { return this->entries; }
@ -52,7 +53,8 @@ public:
return this->get_entry(index);
}
// FIXME: Figure out how to make sure you do not try to access something outside of the index
// FIXME: Figure out how to make sure you do not try to access something
// outside of the index
cnumber &operator[](const long long index) { return this->entries[index]; }
friend ostream &operator<<(ostream &os, const vector &v) {

Loading…
Cancel
Save