Error while using tokenization

sir,i am working on dev c++…i am getting error while using strtok function…
15 25 C:\Users\ahmed\Documents\sdbhjv.cpp [Error] cannot convert ‘std::string {aka std::basic_string}’ to ‘char*’ for argument ‘1’ to ‘char* strtok(char*, const char*)’

this is the error ,can u help how to resolve it…basically i have taken s string as input and applied tokenization directly

hi @sxmeer_ahmed can you please share your code on ide.codingblock.com

1 Like

can u send me simple code in which we just take input string and apply tokenization on it…like same as video but string is user based

@sxmeer_ahmed i am unable to understand your doubt. Please see this link https://www.geeksforgeeks.org/tokenizing-a-string-cpp/ if it doesn’t answer your query let me know

yaaa…thnk u…this is wht i need…actually i am no

1 Like

@sxmeer_ahmed please mark your doubt as resolved if you dont have any further queries!