$ g++ RepeatedSearch.cpp $ a.out NOTE:Strings are accepted only till blank space. Enter Original String:ThisC++programperformsnaivestringmatchingwithoutusinganyspecificlibraryfunctions.Atextandapatternisgivenasinput.Thepatternissearchedforinthetextandallinstancesofthepatternaregivenasoutput.h Enter Pattern to Search:in Pattern Found at Position: 30 Pattern Found at Position: 38 Pattern Found at Position: 50 Pattern Found at Position: 100 Total Instances Found = 4 ------------------ (program exited with code: 0) Press return to continue