Is there any way in C++ to check whether a string starts with a certain string (smaller than the original) ? Just like we can do in Java
bigString.startswi
http://www.cplusplus.com/reference/string/string/substr/
You can use string.substr() to see any number of characters from any position, or you could use a string.find() member.