#include <iostream>
#include <string> //스트링 클래스를 쓰려면 반드시 필요한 헤더
#include <cstdlib>
#include <ctime>
using namespace std;
int main()
{
//스트링 생성
string str;
string address("서울시 성북구 삼선동 389");
string copyAdress(address); //adress의 문자열을 복사한 스트링 객체 생성
char text() = { 'L','o','v','e',' ','C','+','+','\0' }; //C-스트링
string title(text); //'Love c++'문자열을 가진 스트링 객체 생성
//스트링 출력
cout << str << endl; //빈 스트링(str에 문자열 지정되지않음) 출력 //공백인 줄 생김
cout << address << endl;
cout << copyAdress << endl; //adress복사본 출력
cout << title << endl; //textf를 가진 title스트링 출력
}