not declared in this scope’ when using strlen()

You forgot to include <cstring> or <string.h>.

cstring will give you strlen in the std namespace, while string.h will keep it in the global namespace.

Leave a Comment