i dont understand the use of c_str() while passsing to strtok() function.Just typecasting the string to character will not sent the pointer to character array in strtok function?
C_str() function used in the program
hello @kani001
i m not sure it will work or not.
because string is a class and char * is pointer .
try to do typecasting by (char*) string_name and see whether it is working or not