mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-05-11 19:17:21 +08:00
fix absolute value
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user