{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

2 10 52 2 19 2 19 223cpp 01 02 03 04 05 06 07 08 09

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: " << "\""<<endl; } - 26 - IT COOKBOOK 4] 문자형 IT COOKBOOK 문자형의 문자형의 종류 - 27 - 5] 문자열형 IT COOKBOOK 문자열(string) 문자열 문자열(string) 상수 일련의 일련의 문자들의 집합으로 구성되고 반드시 이중따옴표로 한다. 둘러싸야만 한다. 문자의 부족하다. 문자의 집합이라고만 표현하기에는 부족하다. 마지막에 문자, 마지막에 문자열의 끝을 나타내는 널(NULL) 문자, 즉 \0을 때문이다. 반드시 포함해야 하기 때문이다. - 28 - 5] 문자열형 IT COOKBOOK 문자열(string) 문자열 문자열(string) 상수 저장하기 위한 변수 선언 - 29 - 5] 문자열형 IT COOKBOOK 널문자와 널문자와 공백문자 - 30 - [실습하기 2-10] 문자열 저장하기 IT COOKBOOK [예제 2-10] 2_12.cpp 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 #include <iostream> #include <cstring> using namespace std; void main() { char flowers1[5] = "rose"; char flowers2[6] = {'l', 'i', 'l', 'a', 'c'}; char flowers3 = "tulip"; cout...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern