#include #include #include using namespace std; int main() { char cstr[100]; string bla = "Hello, World!"; cout << bla << endl; // works fine! bla = "Test"; cout << bla << endl; // does not work! //cstr = "Test"; strcpy(cstr,"Test"); cout << cstr << endl; // only c++ strings! bla = bla + " World!"; cout << bla << endl; // cstring: strcat (?) bla = "Hello, " + static_cast("World!"); cout << bla << endl; cout << "Enter something: "; //cin >> bla; getline(cin,bla); cout << "You typed " << bla; return 0; }