I want to store the static value in string pointer is it posible?
If I do like
string *array = {\"value\"};
the error occurs
As array is an array of strings you could try this:
array
string
int main() { string *array = new string[1]; array[1] = "value"; return 0; }