how to check string start in C++ May 10, 2023 by Tarik std::string s("Hello world"); if (s.find("Hello") == 0) { std::cout << "String starts with Hello\n"; }