Gives an error invalid conversion from 'const char*' to 'char*' [-fpermissive]Code:string lineread = "Hello" char* cstr = lineread.c_str();
I understand this has something to do with immutable vs mutable and that the solution, as the internet gurus say, is to make a copy. This is too Greek to me. Can someone actually add one or two lines of code to the above to make the conversion work?