How to check whether a string starts with another string in C++?

How to check whether a string starts with another string in C++? For example,

startwith("big string here...", "big") --> True

and

startwith("big string here...", "small") --> False

and

startwith("big", "big string here") --> False
asked Jan 15 by anonymous

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...