ForNext
Only Do What Only You Can Do
037. comparison
Hyperpolyglot C++ Style Languages: C++, Objective C, Java, C# より (2012.05.08)
VBScript
JScript
Perl
PHP
Python
Ruby
PowerShell
Scala
F#
C
C++
string *s1 = new string("hello"); string *s2 = new stringt("world"); cout << s1->compare(*s2) << endl;
C++Builder
VC++
C#
"hello".CompareTo("world")
Java
"hello".compareTo("world")
Objective-C
[@"hello" compare:@"hello"]