I need to write a c++ Projekt and the conditions are, i can only use the < to compare 2 variables. I cant use <=, >=, >, ==, !=. But now i need to compare 2 variables. How can i compare them, if they are the same without using ==.
Example:
if {
A == B; // can´t use this but need to scan if they are the same
}
i have 0 idea how to do that so i hope any of you can help me. I tried to do it like
A < B && B < A but i think i cant get to the solution.