Java programmer doing a c++ program

Hi all, new to this forum!

I'm about to setup a search function on parallel processors using the openmpi library. Prior to this I've only worked with java but to use openmpi I need to use c or c++. C++ seems closely related to java, so c++ it is!

I want to find patterns in strings, but I don't know what 'core' functions to work with.
Example of a string:
qwrwjlsdfio>
dfoijgdoijd>
lsdfiodfpjp>
jsdklfjjjos>

Here the sub-strings 1 and 3 shares lsdfio and that's a pattern I like to find. I guess iteration and some 'string compared to string' function would do the trick, but are there any other functions I should know about when I start coding?

The string class has a find() function: http://cplusplus.com/reference/string/string/find/
> are there any other functions I should know about when I start coding?

There are algorithms you need to know about *before* you start coding.
http://en.wikipedia.org/wiki/String_searching_algorithm

Perhaps, start by studying Boyer–Moore.
Thanks man!

I saw heaps of string functions in the left menu that popped up in your link.
Topic archived. No new replies allowed.