Original Post
In my engine which I am developing I am using the new style C++ but as yet in the String class which I have done I have not been able to find a way round the following problems.
The class has only member variables which are an int for the length and a char* for the data.
1. I want a constructor which takes a char* as an argument but i at the moment I need to use strlen so I can get the length.
2. I need a function to put int''s into the string and at the moment I have to use sprintf and this returns a length as well as having a char* to copy the data from into the class