ForNext
Only Do What Only You Can Do
035. allocate string
Hyperpolyglot C++ Style Languages: C++, Objective C, Java, C# より (2012.05.08)
VBScript
JScript
Perl
PHP
Python
Ruby
PowerShell
Scala
F#
C
C++
string *s = new string("hello");
C++Builder
VC++
C#
string s = "hello"; string t = string.Copy(s);
Java
String s = "hello"; String t = new String(s);
Objective-C
NSString *s = @"hello";