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.

Looking ahead to the rollout of Swift 4 on Jun 5th at WWDC I have been scanning the Swift Evolution Github page to get a feeling of which of the proposals will make the cut for Swift 4 and which proposals will push ahead to later version of Swift 4.*.  One proposal in-particular that caught my attention was proposal 168, for multi-line string literals.

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.  Coming from an iOS/OSX background I figured I could do some research and figure out a comparable replacement for how I would normally create background threads with Grand Central Dispatch.