Category : compare

//Why is my program not working when I enter a charge number that matches the number in my array. Please Refer to the function #include <iostream> #include <cmath> using namespace std; string returnWord(int arr[], int SZ){ int nums = 0; string answer; cout << "Please enter a charge number: "; cin >> nums; for(int i ..

Read more

This is the code from cppreference. I would like to understand the mechanics of how std::equal_range uses "Struct Comp" as a binary predicate. Ok i understand what function call operator overload is; so struct Comp becomes a function type, which has two different function prototypes. How does equal_range chooses which function to consider and why ..

Read more

I need to write a program for my school project, wich compares lines from two large files, one approx. 1.5G(40kk lines), and other one is approx. 5gb(100kk lines) to find duplicate lines and write those lines to new file. I’ve alredy tried writing those programs in NodeJs and Python, however, they weren’t able to compare ..

Read more