#include <iostream>
using namespace std;
int main()
{
string a = "Hello";
string b = "World!";
string c = a + b;
cout << c << endl;
cout << "c.size() = " << c.size() << endl;
for(unsigned i = 0; i < c.size(); i++){
cout << "c[" << i << "] : " << (char)c[i] << endl;
}
return 0;
}
No comments:
Post a Comment