mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-03 02:25:57 +08:00
fix absolute value
This commit is contained in:
@@ -135,7 +135,7 @@ int main() {
|
||||
std::cout << "Enter element to add = ";
|
||||
std::cin >> x;
|
||||
h = mychain.hash(x);
|
||||
h = std::fabs(h);
|
||||
h = std::abs(h);
|
||||
mychain.add(x, h);
|
||||
break;
|
||||
case 2:
|
||||
|
||||
Reference in New Issue
Block a user