fix absolute value

This commit is contained in:
Krishna Vedala 2020-07-23 17:28:45 -04:00
parent 7ae91d2607
commit e45a37763d
No known key found for this signature in database
GPG Key ID: BA19ACF8FC8792F7

View File

@ -135,7 +135,7 @@ int main() {
std::cout << "Enter element to add = "; std::cout << "Enter element to add = ";
std::cin >> x; std::cin >> x;
h = mychain.hash(x); h = mychain.hash(x);
h = std::fabs(h); h = std::abs(h);
mychain.add(x, h); mychain.add(x, h);
break; break;
case 2: case 2: