Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

C++ String find Example

#include<iostream>  
using namespace std;  
int main()  
{  
string str= "Welcome to Softhunt.net Tutorial Website";  
cout <<  str<<'
';  
cout <<" Position of the 'to' word is :";  
cout<< str.find("to");  
return 0;   
}
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #String #find #Example
ADD COMMENT
Topic
Name
4+6 =