I have a string pointer like below,
char *str = "This is cool stuff";
Now, I've references to this string pointer like below,
char* start = str + 1;
char* end = str + 6;
So, `start` and `end` are pointing to different locations of `*str`. How can I copy the string chars falls between start and end into a new string pointer. Any existing C++/C function is preferable.
this is 'c', not 'c++', in 'c++' one would use either a string class or an array class (I HOPE).
以上就是Copying some strings from pointer array in C++的详细内容，更多请关注web前端其它相关文章！