OK. I have some code, but there has to be an easier way. I want to declare a char *-style string on the free store and initialize it at the same time. What I'd like to do, in other words, is something like this:
But with dynamic memory, like:Code:char * theString = "TEST STRING";
But that obviously does not work. Does anybody know what I'm talking about and can help me with it? Thanks!Code:char * theString = new char("TEST STRING");