I have a string object in my C++ program declared as follows:
string str;
I have copied some data into it and done some operations. Now I w
Add an Additional scope
{ String str; ... ... }
to ensure that str goes out of scope when you no longer need it. Remeber it could be tricky in terms of how other variables are also defined.