0
What is the alternative function of "indexof()" in C++???
String is an array of character right? So I'm wondering if you can also get the index of it with some functions like in java
1 Answer
+ 2
you can use "find()" for strings which does exactly the same job
for more info visitđ
https://www.geeksforgeeks.org/string-find-in-cpp/