I suggest you subtract one number from another, then check the sign of the result i.e. is it positive, negative or zero, and based on this determine which was larger.
More Related Contents:
- Why I am getting Time Limit Exceeded? [closed]
- What is a vector of vector of point? [closed]
- Please explain output from the `function1(p1,p2,p3);`
- What is different between *variable and variable* in c?
- How to call a parent class function from derived class function?
- How to write a large buffer into a binary file in C++, fast?
- using OpenCV and SVM with images
- C++ templates Turing-complete?
- C++11 allows in-class initialization of non-static and non-const members. What changed?
- How do I select a range of values in a switch statement?
- What is the difference between “long”, “long long”, “long int”, and “long long int” in C++?
- Is string::c_str() no longer null terminated in C++11?
- How to write custom input stream in C++
- how to initialize a constexpr reference
- C++11 inheriting constructors and access modifiers
- How can I find the actual path found by BFS?
- in C++ , what’s so special about “_MOVE_H”?
- How do I sort the texture positions based on the texture indices given in a Wavefront (.obj) file?
- In what ways do C++ exceptions slow down code when there are no exceptions thown?
- C++ Get all bytes of a file in to a char array?
- What is the behavior of “delete” with stack objects? [duplicate]
- Understanding the example on lvalue-to-rvalue conversion
- Unoptimized clang++ code generates unneeded “movl $0, -4(%rbp)” in a trivial main()
- Convert C++ function pointer to c function pointer
- What are good practices regarding shared libraries on Linux?
- Critique my non-intrusive heap debugger
- Memory Allocation char* and char[]
- How to load a custom binary resource in a VC++ static library as part of a dll?
- Local type as template arguments in C++ [duplicate]
- In lambda functions syntax, what purpose does a ‘capture list’ serve?