Program in C++

i want to make a code in c++.
To find a particular word repeating how many times in a string.
For example->
Enter a string-> mynameisnamebutnonameismyname
Word enter to count-> name
output is-> name is repeating 4 times in a string..
Make this code with using iostream ,conio and string libraries.
Please someone help me
Please post what you have so far.
Actually i know how this coding done in java but have no idea how to do this in c++
http://www.cplusplus.com/doc/tutorial/basic_io/
That would be a sensible starting place to get user input.
Well, post the Java version and we'll help you move it to C++. We can only help if you have something we can work with.
Topic archived. No new replies allowed.