编辑器
#include
#include
using namespace std; int main () { string txt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; cout << "The length of the txt string is: " << txt.length(); return 0; }
The length of the txt string is: 26