"New string"의 두 판 사이의 차이

52번째 줄: 52번째 줄:
==같이 보기==
==같이 보기==
*[[string length]]
*[[string length]]
*[[concatenate]]
*[[문자열]]
*[[문자열]]


==참고 자료==
==참고 자료==
*http://eqcode.com/wiki/New_string
*http://eqcode.com/wiki/New_string

2015년 9월 14일 (월) 22:06 판


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 }}