#include <cassert> #include <string> using std::string; void main() { string s1 = "Hello"; assert( s1.length() == 5 ); assert( s1.size() == 5 ); // same as length assert( s1.empty() == false ); // it isn't, so false }