using namespace std;
#include <iostream>
#include <string>

#define println(data)  cout << data <<  endl

int main() {
    string str1 = "IT CookBook";
    const char* char1 = "자료구조와 알고리즘";

    println(str1);
    println(char1);

    string str2 = char1;                // char* --> string
    println(str2);

    const char* char2 = str1.c_str();   // string --> char*
    println(char2);

    println(str1.size());
    println(((string)char1).size());

    str1 = "100";
    char1 = "200";
    println(str1 + char1);

    int value = stoi(str1) + stoi(char1);
    println("합계는 " + to_string(value));
}