#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