code_junkie

What should these comparisons return?

Nov 12th, 2011
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. string s1 = "-0.67:-0.33:0.33";
  2. string s2 = "0.67:-0.33:0.33";
  3. string s3 = "-0.67:0.33:-0.33";
  4. Console.WriteLine(s1.CompareTo(s2));
  5. Console.WriteLine(s2.CompareTo(s3));
  6. Console.WriteLine(s1.CompareTo(s3));
Add Comment
Please, Sign In to add comment