C++ Program to Find Substring in a String

C++ Program to Find substring in a String

Here you will get and learn the source code of C++ program to find substring in a string.

 

Example of C++ program to find substring in a string

Output 1

Enter a string: I am learning c++ from coderevise.com
Enter substring to search : c++
Sub-String found 🙂

 

Output 2

Enter a string: I am learning c++ from coderevise.com
Enter substring to search : Java
Sub-String not found 🙁

 

 

Check out our other C++ programming Examples

 

 

 

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top