Useless! cstring is useless i tell you!

There is nothing useful there for strings!

I need these functions:

int string_pos(char* str,char* substr);-To return the Position of the substr in str

char* string_delete(char*str,int start,int end)-Return a modified string str that is copied from start to end

char* string_insert(char*str,char*substr,int pos)-Return a string that which is same as str but with inserted substr string on the position pos

They are not included in cstring.

Please help!!!
Last edited on
Try <string> rather than <cstring>

http://www.cplusplus.com/reference/string/string/
Good idea.
Topic archived. No new replies allowed.