if (string1.find(string2) != std::string::npos) {
std::cout << "found!" << '
';
}
if (s1.find(s2) != std::string::npos) {
std::cout << "found!" << '
';
}
Code Example |
---|
Cpp :: number of lines in c++ files |
Cpp :: search a word in cpp file |
Cpp :: int to string c++ |
Cpp :: SetUnhandledExceptionFilter |
Cpp :: how to clear vector c++ |
Cpp :: c++ function |
Cpp :: vector fin element c++ |
Cpp :: remove last index of the string in c++ |
Cpp :: sieve cpp |
Cpp :: round up 2 digits float c++ |
Cpp :: c++ factorial |
Cpp :: how to convert string into lowercase in cpp |
Cpp :: C++ cin cout |
Cpp :: c++ cast char to string |
Cpp :: c++ check palindrome |
Cpp :: OpenGL C++ Version |
Cpp :: how to split a string in c++ |
Cpp :: cout hex c++ |
Cpp :: c++ pi float |
Cpp :: concat two vectors c++ |
Cpp :: c++ remove element from vector |
Cpp :: How to write into files in C++ |
Cpp :: union of two arrays leetcode |
Cpp :: char to integer c++ |
Cpp :: fizzbuzz c++ |
Cpp :: c++ capture screen as pixel array |
Cpp :: insertion sort cpp |
Cpp :: C++ New Lines |
Cpp :: how to make a comment in c++ |
Cpp :: attention nlp |