Quick actions

cmd+k|ctrl+k

Navigation

Languages

std::string / Finding characters in a string / Essential C++

Snippet info

Language

Cpp

Visibility

public

Author

kkowalczyk

Created

2019-03-27T06:54:46Z

Updated

2019-03-27T06:54:46Z

#include <iostream>
#include <string>

using namespace std;
 
int main() {
    std::string str = "dog dog cat cat";
    std::cout << "Found at position: " << str.find_last_of("gzx") << '\n';
}
INFO