#include <iostream>
#include <string>
int main()
{
std::wstring str = L"java go c c++ python c#";
int pos = (int)str.find(L"c");
std::wstring part1 = L"", part2 = L"";
if (pos != -1) {
part1 = str.substr(0, pos);
part2 = str.substr(pos);
}
std::wcout << part1 << std::endl;
std::wcout << part2 << std::endl;
}
/*
run:
java go
c c++ python c#
*/