home > 比較編 > C, C++, Objective-C, Java, C# > strings >

ForNext

Only Do What Only You Can Do

037. comparison

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"]


D

VB

VB.NET

Delphi

Ada

PL/SQL

T-SQL

関数型

inserted by FC2 system