(C++) std::strlen

January 11, 2018 · View on GitHub

 

 

 

 

 

(C++) std::strlen

 

std::strlen is a function to determine the length (in characters) of a C-style string.

 


#include <string> struct Person {   std::string m_name;   //Other member variables }; int main() {   Person p;   p.m_name = "Bilderbikkel"; }