最終更新:2012-01-07 (土) 16:32:44 (4464d)
文字列
Top / 文字列
C言語
- char[]
C++/文字列
- string = typedef basic_string<char> string;
Visual C++/文字列
C♯
- string (System.Stringのエイリアス)
リテラル
string a = "hello, world"; // hello, world string b = @"hello, world"; // hello, world string c = "hello \t world"; // hello world string d = @"hello \t world"; // hello \t world string e = "Joe said \"Hello\" to me"; // Joe said "Hello" to me string f = @"Joe said ""Hello"" to me"; // Joe said "Hello" to me string g = "\\\\server\\share\\file.txt"; // \\server\share\file.txt string h = @"\\server\share\file.txt"; // \\server\share\file.txt string i = "one\r\ntwo\r\nthree"; string j = @"one two three";
Delphi
- string
VB.NET
VB
- String