//
// g++ -std=c++0x t1.cpp -o t1
//
#include <iostream>
#include <cstdlib>
#include <string>
int main(int argc, char ** argv)
{
int i;
std::string a("guten tag");
std::string b("tag");
i = a.find( b);
if( i != std::string::npos){
std::cout << "find " << a << " and " << b << " i " << i << std::endl;
}
else{
std::cout << "no match" << std::endl;
}
}