it's friday

This commit is contained in:
2022-03-18 10:45:12 -05:00
parent 3f0681c981
commit 49ea46b506
3 changed files with 15 additions and 6 deletions

View File

@@ -43,16 +43,18 @@ Row::~Row(){
// access operator (const)
double Row::operator[](unsigned int column) const{
//finish
double result;
return result;
if (column >= length) {
throw(out_of_range("Column is out of range"));
}
return row_data[column];
}
// access operator (non-const)
double& Row::operator[](unsigned int column){
//finish
double result;
return result;
if (column >= length) {
throw(out_of_range("Column is out of range"));
}
return row_data[column];
}
// assignment operator