#pragma warning(disable : 4996) // string::size #include#include int main() { std::string str("Test string"); std::cout << "The size of str is " << str.size() << " bytes.n"; //The size of str is 11 bytes. return 0; }

#pragma warning(disable : 4996) // string::size #include#include int main() { std::string str("Test string"); std::cout << "The size of str is " << str.size() << " bytes.n"; //The size of str is 11 bytes. return 0; }