i wanna store character of it so:
string a = (*b)[0];
this gives me error( said its type is not string)
why?
is b the pointer to char that you are passing?
string a = string(b);
I had this problem before. Do this and see whether it works: string a = string { (*b)[0] }; I don't know exactly how it works but worked for me.
you are creating a string. just use its single element constructor which takes a character.
Обсуждают сегодня