C++ / stringクラス

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

int main(){
    string sute = "これはテストです。";
    cout << sute << endl;

    cout << "これは試験です。" << endl;

    char hoge[] = "これも試験です。";
    cout << hoge << endl;

    system("pause");
    return 0;
}

f:id:ti-nspire:20181117102231p:plain