/******************************************************************************
Online C++ Compiler.
Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.
*******************************************************************************/
#include <iostream>
#include <string>
int main()
{
std::string s ("A string.");
std::string word ("string");
// idiom
bool ok = s.find(word) != std::string::npos;
std::cout << std::boolalpha << ok;
return 0;
}