C ++ program for implementation of simple approach to find length of last word
#include <bits/stdc++.h> NEW_LINE #include <boost/algorithm/string.hpp> NEW_LINE using namespace std ; int lengthOfLastWord ( string a ) { int len = 0 ;