I am newbie in C++. I have a question that how can I get a string from a string element(one element or character).
Like, I have a `std::string` named `h` and it contains `"HKK"`. Now I have another string named `k`. Now I want to get the element number 1(k) from `h` and set it to `k`

```
#include<iostream>
#include<string>

using namespace std;

int main() {
   string h = "HKK";
   string k = h.at(1); //K
   cout << k << endl;
   return 0;
}

```

But the compiler(g++) gives error that :

```
 error: invalid conversion from ‘char’ to ‘const char*’ [-fpermissive]
 string k = h.at(1);
                  ^

```

**edit:**
If I do it for a function like:

```
void out(string out) {
   cout << "Out : " << out << endl;
}

int main() {
   string h = "HKK";
   out(h.at(1)); //K
   return 0;
}

```

Is there any solution than this?

```
string k += h.at(1);
out(k);

```

Please help me!
Thanks
Sorry for bad English