Skip to main content

C++

If you have ever wondered how to find a substring inside another string in C++ then hopefully this tutorial will help walk you through how to do that.  As an example, in C++, if you have ever wondered how to determine if the substring "Agnosticdev," is part of the parent string "Hello Agnosticdev, I love Tutorials," then this tutorial will show you how to indicate, with an unsigned integer, the index of the first character in the substring.

Lately I have been writing a lot of C++ on Linux and have been really enjoying it.  I love the flexibility of jumping right in on the terminal, writing my code, and compiling all from one spot.    As my writing continued and my program evolved I realized that I needed some worker threads to process some pretty expensive computation that I did not want hogging my main thread.