Search This Blog

Sunday, 23 August 2020

Find out function FIND THE STRING OR ANY THING USING THIS ..

 #include<iostream>

using namespace std;

int main()

{

string str="good morning";

char findout;

cout<<"string is:"<<str<<endl;

cout<<"enter the charactor you want to find:"<<endl;

cin>>findout;

cout<<"we find the "<<findout<< " "<<"at :"<<str.find(findout);

return 0;

}


No comments:

Post a Comment

Search This Blog

Contact Form

Name

Email *

Message *

Popular Posts