#includeIn this example, we have a CString object "str" containing the string "Hello World!". The delimiter we want to use for splitting is a space character. We then create a CStringArray and pass it as a reference to the Split function along with the string and delimiter. The function returns the number of substrings found, which we can use to loop through and print out each substring to the console. The package library for this function is MFC (Microsoft Foundation Classes), which is a set of C++ libraries that provide an object-oriented framework for developing Windows applications. The CString class is part of this library and provides a way to manipulate strings in a similar fashion to the standard C++ library's string class.#include int main() { CString str = _T("Hello World!"); CString delimiter = _T(" "); CStringArray arr; int count = str.Split(delimiter, arr); for (int i = 0; i < count; i++) { std::wcout << arr[i] << std::endl; } return 0; }