I followed the video exactly, and my program still gets an error once the user types in less than 6 words.
Expected outcome:
Loop until user enters a correct input
Outcome:
This error appears:
Debug Assertion Failed!
Program: C:\Windows\system32\MSVCP140D.dll
File: c:\program files (x86)\microsoft visual
Studio\2017\community\vc\tools\msvc\14.13.26128\include\xstring
Line: 3148
Expression: string subscript out of range
For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts
(Press Retry to debug application)