#include #include using namespace std; void main() { string str("Hello, this is a Test"); string::size_type position = str.find_first_of("Test"); cout << "First occurrence of Test was found at: " << position << endl; string::size_type pos = str.find_last_of("Test"); cout << "Last occurrence of Test was found at: " << position << endl; }