I personally don't know how to program this C++ program on how to determine the string of the constant string. This program is quiet simple if you study more about on how to program C++. C++ is an object-oriented programming or know as OOP. So, in this program example I made this to sharpen my programming skills. Hope I can give also to the future idea on how to program that can determine what is the length of the string for most complicated. But we've did this program in our Turbo C Class which the Basic programming Languages. Most of the keywords in Turbo C is also a keywords of C++ programming languages.
I Hope you learn about. Study the program code and try it to enhance your programming skills .
Remember: You must to start to the small one than to larger one.