help with getting middle name out of string

Seth Mitchell 1 Reputation point
2021-04-14T01:22:16.913+00:00

Ok, so I have been working on this homework assignment. I have one part that I cannot figure out.

we have make var for completeName, firstName, lastName, spacePos, and tempStr. It looks like this:

The Middle name befumbled me! I do not know how to get only the middle name. It probably looks weird/wrong because I have been playing with it, but any help would be appreciated.

Thanks
Seth

Windows Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,664 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.