New string

Jmnote bot (토론 | 기여)님의 2020년 11월 2일 (월) 02:34 판 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight))
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)


1 C#[ | ]

string str1 = "Hello";
string str2 = new string("Hello");

2 Java[ | ]

String str = new String("Hello");

3 JavaScript[ | ]

var str = "Hello";
var str = new String("Hello");

4 PHP[ | ]

$str = 'Hello';
$str = "Hello";
$a = 'Hello';
$b = "$a World"; // Hello World
$a = 'Hello';
$b = '$a World'; // $a World

5 Objective-C[ | ]

NSString *str = [[NSString alloc] initWithString:@"Hello"]; // alloc (need release)
NSString *str = @"Hello"; // autorelease

6 같이 보기[ | ]

7 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}