Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main()
- {
- toto a, b;
- std::cout << compare(a, b) << ": should be 0" << std::endl;
- std::cout << compare(1, 2) << ": should be -1" << std::endl;
- std::cout << compare<const char *>("chaine Z", "chaineA42") << ": should be 1" << std::endl;
- const char *s1 = "42", *s2 = "lulz";
- std::cout << compare(s1, s2) << ": should be -1" << std::endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement