mirror of
https://codeberg.org/andyscott/exercism.git
synced 2024-11-14 07:10:48 -05:00
1.1 KiB
1.1 KiB
Hints
General
- This tutorial offers a nice introduction to C++ strings.
- The
std::basic_string
class has many useful built-in methods.
1. Get the message from a log line
- The built-in methods offer some ways to find text in a string.
- The built-in methods can help us get a portion of a string
2. Get the log level from a log line
There are several ways to concatenate strings, the simplest is using the +
operator but there are more advanced ways as well.