fix bug : is_precedent

modified:   ../as1/assignment01_by_evan.cpp
This commit is contained in:
mooophy
2014-12-16 23:41:37 +13:00
parent 17eb9e98af
commit 320ba34e58

View File

@@ -38,7 +38,7 @@ inline bool is_same_position(Node<T> const& lhs, Node<T> const& rhs)
template<typename T>
inline bool is_precedent(Node<T> const& lhs, Node<T> const& rhs)
{
if(lhs.row_ < lhs.row_) return true;
if(lhs.row_ < rhs.row_) return true;
else if (lhs.row_ == rhs.row_) return lhs.col_ < rhs.col_;
else return false;
}
@@ -148,7 +148,7 @@ ostream& operator<<(ostream& os, Matrix<T> const& mat)
curr = curr->next_;
}
}
os<<endl;
os << endl;
}
return os;
}