//enter string without spaces #include #include using namespace std; int main() { char org[100], dup[100]; int i, j, k = 0, len_org, len_dup; cout << "NOTE:Strings are accepted only till blank space."; cout << "\nEnter Original String:"; fflush(stdin); cin >> org; fflush(stdin); cout << "Enter Pattern to Search:"; cin >> dup; len_org = strlen(org); len_dup = strlen(dup); for (i = 0; i <= (len_org - len_dup); i++) { for (j = 0; j < len_dup; j++) { //cout<<"comparing '"<