Advertisement
Guest User

Untitled

a guest
Jan 16th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. int main()
  2. {
  3. toto a, b;
  4.  
  5. std::cout << compare(a, b) << ": should be 0" << std::endl;
  6. std::cout << compare(1, 2) << ": should be -1" << std::endl;
  7. std::cout << compare<const char *>("chaine Z", "chaineA42") << ": should be 1" << std::endl;
  8. const char *s1 = "42", *s2 = "lulz";
  9. std::cout << compare(s1, s2) << ": should be -1" << std::endl;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement