std::string Line; // A container to hold a whole sentense
std::getline(std::cin, Line); // Get the sentence from cin
std::stringstream iss(Line); // Put the sentence back in a stream
while (iss.good()) // Keep extracting words until the stream is empty
{
std::string word; // A container to hold individual words
iss >> word; // extract the word
std::cout << word.size() << ' '; // print out the size of the word
}