执行下面C++代码后输出的是( )。 string str = "chen"; int x = str.length(); cout << x << endl; A. 4B. 3C. 2D. 5 正确答案:A