gnu

블로그 이미지
by 군우

TAG CLOUD

  • Total hit
  • Today hit
  • Yesterday hit

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace ConsoleApplication9
{
    class StringTest2
    {
        static void Main(string[] args)
        {
            string str = "Hello Wourld Hi Hello";
            Console.WriteLine("원문 str: {0}", str);
            Console.WriteLine();
            Console.WriteLine("Index of \"World\": {0}", str.IndexOf("World"));
            Console.WriteLine("LastIndexOf \"Hi\": {0}", str.LastIndexOf("World"));
            Console.WriteLine("Replace\"World\" to \"Tom\" :{0}", str.Replace("World","Tom"));
 
            Console.WriteLine("str의 substring(6): {0} ", str.Substring(6));
 
        }
    }
}
 
cs


'C# > C# Training' 카테고리의 다른 글

[C#] 문자열 비교함수  (0) 2018.05.17
[c#] 배열 copy  (0) 2018.05.17
[C#] 배열 copy함수  (0) 2018.05.17
[C#] 배열 함수  (0) 2018.05.17
[C#] 가변배열2  (0) 2018.05.17
AND

ARTICLE CATEGORY

분류 전체보기 (197)
C (0)
HTML (7)
C# (88)
Python (27)
IT (0)
Android (2)
Java (65)
Study (5)
JavaScript (1)
JSP (2)

RECENT ARTICLE

RECENT COMMENT

CALENDAR

«   2025/04   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30

ARCHIVE

LINK