1. The header file: #include <cstring>
2. Use s.substr (1,4)
3. Copy the string s function string 4 from the start bit length is 1 (the default length from the start position to the end)
Reference: https: //blog.csdn.net/no_retreats/article/details/7853066