Build Our Own Algorithm: Split

Learn to build our algorithm: split.

We'll cover the following

The STL has a rich algorithm library. Yet, on occasion we may find it missing something we need. One common need is a split function.

A split function splits a string on a character separator. For example, here's a Unix /etc/passwd file from a standard Debian installation:

Get hands-on with 1400+ tech skills courses.